You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to be able to check if a string is a valid date. It is a very common use case to get a date string from a form or from an external service.
Example from moment.js: moment('29.2.2013', 'DD.MM.YYYY').isValid()
It would be very useful to be able to check if a string is a valid date. It is a very common use case to get a date string from a form or from an external service.
Example from moment.js: moment('29.2.2013', 'DD.MM.YYYY').isValid()
Code which I believe moment.js uses for this:
https://github.com/moment/moment/blob/c587bf0063c18214238ca83f3f9c6170daf25bed/src/lib/create/from-string.js
The text was updated successfully, but these errors were encountered: