[symfony-users] Re: sfValidatorDate in sf1.3/14 ?

2010-01-23 Thread Cristian N.
To convert a date you can use sfDateFormat (instead of doing the transformation in validator - inconsistent due to none association between regex and date fields - Alex pointed it correctly). something as: $df = new sfDateFormat(); $retDate = $df-format($data_op_tted, $pattern = 'i',

Re: [symfony-users] Re: sfValidatorDate in sf1.3/14 ?

2009-11-29 Thread Alexandre SALOME
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

[symfony-users] Re: sfValidatorDate in sf1.3/14 ?

2009-11-28 Thread goofy
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 alexandre.sal...@gmail.com wrote: What's the outputed error ? 2009/11/27 goofy goofy.m...@gmail.com Hi, after migration 1.2