dateFormat


dateFormatstring

Sets or gets the format of the date displayed in the date picker.

Setting dateFormat changes the way the date is displayed in the date picker.

Valid formats:

  • 'MM/DD/YYYY'
  • 'DD/MM/YYYY'
  • 'YYYY/MM/DD'
  • 'YYYY/M/D'

Getting the dateFormat property returns the current format used to display the date in the date picker.

dateFormat does not affect the format of the value property.

Was this helpful?
Yes
No