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
> var x = 99999;
> validator.isDate(x);
true
> var x = "99999";
> validator.isDate(x);
true
> var x = 0.99999
> validator.isDate(x);
false
> var x = 0.1
> validator.isDate(x);
true
> var x = "foo";
> validator.isDate(x);
false
The text was updated successfully, but these errors were encountered:
It doesn't require sanitization with toDate first. The isDate validator uses the built-in Date.parse() function which is quite lenient with what it accepts.
You can see what it's doing by calling new Date(Date.parse(str)), e.g.
The text was updated successfully, but these errors were encountered: