How to use different date format in front end form? I have a date field on a front end form, currently with this HTML:
&lt;input class=&quot; date-picker startDate&quot; type=&quot;text&quot; id=&quot;startDate&quot; name=&quot;fields[startDate]&quot; value=&quot;&quot;&gt;

I use a JQuery date-picker and have set its format to dd/mm/yyyy
The date displays in the field this format correct, but upon saving no date is saved. I guess its due to the format not being Crafts yyyy-mm-dd because if I set the date-picker format to this, it does save it OK. BUT I obviously dont want to display my dates like this.
How can I display dates in correct human date format in the fields, and save them to the DB correct? Do I need to process all dates in PHP in a plugin to the correct format first?
The field in Craft admin for the entry displays d/m/y OK and that saves.
Thanks
For me, saving dates as a timestamp seems to do the trick to correctly save to the date field in Craft. You can still use the datepicker and have the human readable date, just use the altField and altFormat options (https://jqueryui.com/datepicker/#alt-field) to fill a hidden field with the timestamp that gets submitted.