You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by papouasied <pa...@yahoo.com> on 2005/05/24 14:49:21 UTC
MM/YY date format within validator.xml
hi,
inside validator.xml,
is it possible to use the MM/YY format with the date validator ?
The documentation gives examples with MM/dd/yyyy
http://struts.apache.org/userGuide/dev_validator.html
but not with MM/YY.
I tried this:
<field property="ExpirationDate" depends="required, date">
<arg0 key="ExpirationDate.label.date" />
<var><var-name>datePatternStrict</var-name><var-value>MM/yy</var-value></var>
</field>
Validation is not working.
Any idea please ?
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com