You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Sajous <st...@dotmarketing.com> on 2003/05/08 21:12:05 UTC
date format for validation.xml
Is there a way to set a required date field to accept MM/yy in
validation.xml? It seems to want the whole thing MM/dd/yy
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: date format for validation.xml
Posted by Stephen Bartlett <sb...@agentissoftware.com>.
Try the following:
<field property="dateOfBirth" depends="date">
<arg0 key="customer.dataOfBirth"/>
<var>
<var-name>datePatternStrict</var-name>
<var-value>MM/yy</var-value>
</var>
</field>
May cause problem if you have a requirement for internationalization.
HTH
steve.
> -----Original Message-----
> From: Steven Sajous [mailto:steve@dotmarketing.com]
> Sent: Friday, 9 May 2003 5:12 AM
> To: Struts Users Mailing List
> Subject: date format for validation.xml
>
>
> Is there a way to set a required date field to accept MM/yy in
> validation.xml? It seems to want the whole thing MM/dd/yy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org