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
While the library can perform client-side date validation, validating fields marked with [DataType(DataType.Time)] and rendered as times (e.g., in the format "hh : mm") will not validate correctly.
To solve this issue, I performed the following changes to mvcfoolproof.core.js:
Added a "isTime" function right above the isDate local function:
and now it works. The bad thing about the above is that I have introduced a dependency on moment.js, I don't know if was already used by the library before.
Hope this can help other people also trying to validate hour/minute intervals.
The text was updated successfully, but these errors were encountered:
While the library can perform client-side date validation, validating fields marked with
[DataType(DataType.Time)]
and rendered as times (e.g., in the format "hh : mm") will not validate correctly.To solve this issue, I performed the following changes to
mvcfoolproof.core.js
:to
and now it works. The bad thing about the above is that I have introduced a dependency on moment.js, I don't know if was already used by the library before.
Hope this can help other people also trying to validate hour/minute intervals.
The text was updated successfully, but these errors were encountered: