Page 1 of 1

oxy_datePicker - input format

Posted: Tue Aug 02, 2022 7:30 pm
by bean1801
I'm using a custom CSS with the oxy_datePicker() form control to ensure that dates are always persisted in format yyyy-MM-dd. This works of course fine.
But the "UI" that is offered to my authors for entering a date has a date format MM/dd/yyyy that is different from that. (See attachment)
oxy_datePicker.PNG
How can I influence the date format that my authors see and have to use when they enter a date? Is it derived from some system setting?
How can I ensure that the authors also have *enter* the date in format yyyy-MM-dd?

Re: oxy_datePicker - input format

Posted: Wed Aug 03, 2022 9:23 am
by alex_jitianu
Hello,

Thank you for reporting this issue. At the time when we added the date picker, the SWT widget didn't have a way of imposing the date format. I will add an issue to investigate it again and see if the option is now present. I did a quick investigation and even if we can't impose a format we can still use a nicer widget that will make users not be affected by the format.
image.png
Meanwhile, you can use a Schematron rule to verify if the date respects the format.

Best regards,
Alex