Date Field in Custom Block
I am creating a site for a musician with a page showing tour dates. I'm hoping to just have a date-picker that they can use to select a date for their tours.
I would like to just have a date selector that populates that field.
This is what I have so far:
Thanks for the help!
i don't think it's included in the jquery ui files in the C5 core so gohttp://jqueryui.com/download uncheck everything possible and only leave datepicker, widget, core and ui, then include them in your header..
and you should be good to go. seehttp://docs.jquery.com/UI/Datepicker/formatDate... for available formats.
And translate() isn't used in the front-end. All you should have to use is the DateHelper::date() or DateHelper::datetime() methods. The translate() method is for taking a post and translating it back into a date string.
When I submit the form, the database field always ends up as "0000-00-00 00:00:00 ", so something isn't being formatted correctly as a date when it's sent.