It seems you could modify the existing "date" validator to first tokenize your date pattern string on "|", and then start the date parsing process, using each token until parsing succeeds. I haven't tried this.
Another possibility might be to not use "date" at all but to use "mask" instead, and specify a (albeit complex) regular expression, using alternation, to indicate your acceptable date patterns.
Hope that helps, Erik
daniel weiss wrote:
Hi all,
how could i set multiple date pattern strings to add other formats of dates ? It is possible ?!
Some formats look like as:
d.M.yy dd.M.yy d.MM.yy dd.MM.yy d.M.yyyy dd.M.yyyy d.MM.yyyy dd.MM.yyyy
Thx in advance Daniel
<field property="filterFreigabeVON" depends="date"> <arg0 key="abp.avr.label.freigabedate" resource="com.ipad.vw.language1"/> <var> <var-name>datePatternStrict</var-name> <var-value>dd.MM.yyyy,dd.MM.yy </var-value> </var> </field>
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]