Actually, answering my own question:
On Thu, Sep 2, 2010 at 3:14 PM, Jochen Daum <[email protected]> wrote:
> Hi,
>
> I'd like to collect a birth date from a normal input field (I *hate*
> date dropdowns, especially for birthdays)
$this->setValidator('dob', new sfValidatorOr(array(
new sfValidatorDate(array('required'=>true,
'date_format' => "=(?P<day>[0-9]{1,2})(\.|/|\s)".
"(?P<month>[0-9]{1,2})".
"(\.|/|\s)(?P<year>[0-9]{1,4})=is")),
new sfValidatorDate(array('required'=>true))
))
);
> Kind Regards,
>
> Jochen
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en