properties.dateFormat

Option path

TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.formElementsDefinition.DatePicker.properties.dateFormat

Data type

string

Needed by

Frontend/ Backend (form editor)

Overwritable within form definition

Yes

form editor can write this property into the form definition (for prototype 'standard')

Yes

Mandatory

Yes

Default value (for prototype 'standard')
 1DatePicker:
 2  properties:
 3    containerClassAttribute: input
 4    elementClassAttribute: 'small form-control'
 5    elementErrorClassAttribute: error
 6    timeSelectorClassAttribute: mini
 7    timeSelectorHourLabel: ''
 8    timeSelectorMinuteLabel: ''
 9    dateFormat: Y-m-d
10    enableDatePicker: true
11    displayTimeSelector: false
Description

The datepicker time format. The following date formats are allowed:

Day

Format character

Description

d

Day of the month, two digits with leading zeros

D

A textual representation of a day, three letters

j

Day of the month without leading zeros

l

A full textual representation of the day of the week

Month

Format character

Description

F

A full textual representation of a month, such as January or March

m

Numeric representation of a month, with leading zeros

M

A short textual representation of a month, three letters

n

Numeric representation of a month, without leading zeros

Year

Format character

Description

Y

A full numeric representation of a year, four digits

y

A two digit representation of a year