Parses the given string to date, if possible.
A string which should be parsed to date.
Optional
baseDate: DateThe base date which sould be used for parsing.
new ix.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").parse("2021-01-01T20:55:43.000Z");
// returns a Date object `Fri Jan 01 2021 20:55:43 GMT+0100 (Central European Standard Time)`
This is a
java.text.SimpleDateFormat
wrapper for Moment.js.