Read this : http://symfonyguide.wordpress.com/2009/08/19/a-sfvalidator-to-convert-a-date-from-a-given-pattern-to-a-sql-friendly-pattern-symfony-1-2/
Defining a regex without specifying which key is day/month/year is suspect. How does it convert ? The given link seems to provide a sfValidatorDateI18n on which you have explicit options for input/output format. Give us a feedback, Alexandre 2009/11/28 goofy <[email protected]> > No error i always get the today date … > > Ex : type 27/11/09 -> 2009-11-28 ( i try in two different module with > differents forms) > > On 28 nov, 01:33, Alexandre SALOME <[email protected]> wrote: > > What's the outputed error ? > > > > 2009/11/27 goofy <[email protected]> > > > > > > > > > Hi, > > > > > after migration 1.2 to 1.3, ny sfvalidatordate dont work anymore and i > > > cant find solution : I just want to type dd/mm/yy and get it in mysql > > > format : > > > > > new sfValidatorDate(array( > > > 'date_format' => '/^(\d{2})\/(\d{2})\/(\d{2})/', > > > 'date_output'=>'Y-m-d', > > > 'with_time' => false, 'required' => true)), > > > > > -- > > > > > 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]<symfony-users%[email protected]> > <symfony-users%[email protected]<symfony-users%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/symfony-users?hl=en. > > > > -- > > Alexandre Salomé -- [email protected] > > -- > > 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]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- Alexandre Salomé -- [email protected] -- 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.
