parseFormats Array

Specifies the formats, which are used to parse the value set with value() method or by direct input. If not set the value of the options.format and options.timeFormat will be used. Note that value of the format option is always used. The timeFormat value also will be used if defined.

Order of the provided parse formats is important and it should from stricter to less strict.


<input id="datetimepicker" />
    format: "yyyy/MM/dd hh:mm tt",
    parseFormats: ["MMMM yyyy", "HH:mm tt"] //format also will be added to parseFormats
In this article