parseFormats Array

Specifies a list of date formats used to parse the value set with value() method or by direct user input. If not set the value of the format will be used. Note that the format option is always used during parsing.

The order of the provided parse formats is important and it should go from more strict to less strict.


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