cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Curran <daniel.cur...@dotech.com>
Subject CFORMS: Accept Multiple Date Formats
Date Wed, 31 May 2006 17:03:25 GMT
I have a date field in my form definition setup as:

<fd:field id="dscdate">
  <fd:datatype base="date">
    <fd:convertor type="formatting">
      <fd:patterns>
        <fd:pattern>MM-dd-yyyy</fd:pattern>
        <fd:pattern>MM/dd/yyyy</fd:pattern>
      </fd:patterns>
    </fd:datatype>
</fd:field>

When a user enters a date such as 10-20-2005 a failure is the result, 
with the form generating a validation message. When entering the date as 
10/20/2005 the submission is successful. Is it possible to accept both 
these formats? If so how should this be setup?

Thanks,
Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message