---
name: "Embperl::Form::Control::datetime"
section: "3pm"
platform: "linux"
package: "libembperl-perl"
version: "2.5.0-17"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/Embperl::Form::Control::datetime"
---

# Embperl::Form::Control::datetime(3pm)

A price input control with optional unit inside an Embperl Form

## NAME

Embperl::Form::Control::price - A price input control with optional unit inside an Embperl Form

## SYNOPSIS

```
  {
  type => 'price',
  text => 'blabla',
  name => 'foo',
  unit => 'sec',
  }
```

## DESCRIPTION

Used to create a datetime input control inside an Embperl Form. Will format number as a date/time. See Embperl::Form on how to specify parameters.

Datetime format in `%fdat` is expected as YYYYMMTTHHMMSSZ

### PARAMETER

*type*

Needs to be 'datetime'

*name*

Specifies the name of the control

*text*

Will be used as label for the numeric input control

*size*

Gives the size in characters. (Default: 10)

*notime*

does not display time

*dynamic*

allows the following values to be entered:

d, m, y, d-N, d+N, m-N, m+N, y-N, y+N

N is any number. This values are simply passed through and need to be process somewhere else.

## Author

G. Richter (richter at embperl dot org)

## See Also

[**perl**(1)](/perl/1.md), Embperl, Embperl::Form
