Sunday, August 24, 2014

datetime form helper.. need to display only AM/PM instead of hours and minutes

Hello,

We have about 15 datetime fields in our CakePHP project.. now my client wants to change the dropdowns withou hours and minutes with just one dropdown which would allow to select only AM/PM values without hours and minutes.. what would be the best way and easiest way to replace it in all forms on every page? I would like to ideally keep the datetime format in MySQL and just save "AM" as for example "Y-m-d 10:00" and "PM" as "Y-m-d 20:00" in the database so I dont need to change the structure and just modify the datetime form helper somehow?

Thank You for your suggestions

Frank. 


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: