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.
In addition to the
MDY
,YMD
, andDMY
formats, we'll have to support "wire format" as well. This way@Past
and@Future
could be used withdate
,time
, anddatetime
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.