It's expecting something like this:

$builder->add('next_contact_date', 'date', array('input' =>
'datetime', 'widget' => 'single_text', 'format' =>
\IntlDateFormatter::SHORT));

Note this: \IntlDateFormatter::SHORT

This is a PHP thing.  The docs: 
http://www.php.net/manual/en/class.intldateformatter.php

Not sure if this will get the date format you're looking for, but
that's where the integer comes from.

Roger

On Jun 16, 6:59 am, Stephan Petzl <stephan.pe...@gmail.com> wrote:
> there is a pending pull request:
>
> https://github.com/symfony/symfony/pull/694
>
> as far as i see, the formating option will be available as soon as
> this is merged...
>
> BR Stephan
>
> On Jun 16, 11:44 am, ibrows_symfony <ibrows...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I would like to change the format of the datetime widget to "dd.mm.YYYY".
> > How can I do that?
>
> > Actually, my field is implemented like this:
> > $builder->add('startdatum', 'datetime', array( 'date_widget' =>
> > 'single_text', 'time_widget' => 'text'));
>
> > I saw there is a parameter format, but it needs an integer-value.
> > Any idea?
>
> > Thanks.

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to