Open abcbaby opened 6 years ago
I agree with this. My app allows the user to switch field types on a table filter. We've seen an issue where we saw the 1899 when a stale date M dd, yyyy
was present when the user loaded date time format M dd, yyyy HH:ii p
.
Had to call reset as a fix, but it would have nice to have this.
Or an else statement to if (parts.length === format.parts.length) {
that falls back on a new date object
It would be nice if it was possible to pass the default reset date as an option for unparsable dates
Should update boostrap-datetimepicker.js parseDate().
Currently the date is set to:
change to:
This should resolve a bunch of current reported 1899 Year issues: https://github.com/smalot/bootstrap-datetimepicker/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%201899