vivin / regula

Regula: An annotation-based form-validation framework in Javascript
126 stars 24 forks source link

Support UTC and other supported formats in `@Past` and `@Future` #71

Open vivin opened 10 years ago

vivin commented 10 years ago

In addition to the MDY, YMD, and DMY formats, we'll have to support "wire format" as well. This way @Past and @Future could be used with date, time, and datetime elements.

MDY and friends specify the format of the date as it must be parsed as well as the format of the constraint value as specified in @Past and @Future. When using the "wire format" the values to @Past and @Future must be specified using the "wire format" as well. This may end up being a little cumbersome so further research is required.