You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arunachalam Jaisankar <js...@xtra.co.nz> on 2003/02/04 12:34:12 UTC

DateTime,TimeStamp field validations in validation.xml

Hi all,

I'm using struts validator for all dates and it works fine for simple dates.
The entry in validation.xml file is like this.

          <field    property="eventDate"
              depends="required,date">
               <arg0 key="eventForm.eventDate.displayname"/>
                     <var>
                       <var-name>datePatternStrict</var-name>
                       <var-value>dd/MM/yyyy </var-value>
                     </var>
            </field>

How can i validate datetime field using the same procedure using  format
string "dd/MM/yyyy HH:SS" ?
Help required.

thanks & regards
Jai


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org