format

sets a date format to display in the datepicker field

string|function format;

Example

{
  view:"datepicker",
  format:"%m.%d.%Y" // date will be displayed like 09.21.2020
}

Related samples

Details

It can be also used as a function that takes the only argument:

  • date (object) - Date object

The function returns a string.

You can find all the supported specificators in the corresponding section.

See also
Back to top