Add support for submitting in ISO format
jackbentley opened this issue · comments
The date picker really needs to support submitting data in the same ISO format used for the type="date"
input - which is yyyy-mm-dd
.
Similar to the proposed feature in jadu/pulsar#1004
The date picker doesn't work with the Symfony forms implementation (jadu/pulsar-symfony) as it's expected that the format the data is in on submission is yyyy-mm-dd
in accordance with the spec.
We currently have a shim in XFP to transform date pickers to submit in the ISO format.
Another idea might even be to allow multiple inputs alongside the date picker for day/month/year like in https://design-system.service.gov.uk/components/date-input/ but with a date picker being shown as well as the inputs.
Looking into the docs for jquery date picker - this could probably be achieved a lot more easily than in my original PR by utilising altField
https://jqueryui.com/datepicker/#alt-field