datetime form format

New topics about Symfony 2 should go here

Moderators: dcobalt, tiagojsag

datetime form format

Postby neoshadybeat » Sat Jul 21, 2012 2:27 pm

Hi, I'm trying to change the format of datatime to day/mounth,year hour:minutes

I have tried it without sucess, here is my code

Code: Select all
       $builder ->add('fecha_activacion','datetime', array(
    'format' => 'd-M-y H:m',
))



How can I do it?

best regards
neoshadybeat
Junior Member
 
Posts: 1
Joined: Sat Jul 21, 2012 2:17 pm

Re: datetime form format

Postby skydiablo » Tue Jul 31, 2012 8:31 pm

just use date_format

greez,
sky...
skydiablo
Junior Member
 
Posts: 16
Joined: Fri Nov 11, 2011 3:00 am


Return to General Symfony 2 discussion

Who is online

Users browsing this forum: Bing [Bot] and 2 guests