It is unit tested with 100% code coverage and can be considered fit for production.

validating date-38validating date-83

If your instance's date/time format changes, you must update your validation script. Then, with this validation script, if a user enters an incorrect format in a date/time field, they will receive an error message.

This site and all of its contents are referring to Angular JS (version 1.x), if you are looking for the latest Angular, please visit

There are no required external dependencies at all!

Though for the datetime and date validator to you need to specify a parse and format function and for that you most likely will want to use a library, is highly recommended.

Please download the premade validation script from here.

(Start Value = n Month)) b End Month = true; if(b Start Month && b End Month) Item("valid month"); else Item("invalid month"); // Validate the day range.

var n Year = o Full Year(); var n Month = o Month() 1; // 0 based var n Day = o Date(); // Validation flags.