We are using the input field with format date for datepicker.
When the system settings are set to region Sweden, the expected date format on the datepicker UI is yyyy-mm-dd. This works fine in Chrome, but not in Safari.
It seems to be specific to this date format, because when we change the system region to for example UK or US, the date format UI updates to dd/mm/yyyy and mm/dd/yyyy respectively, also in Safari.
Any idea why the Swedish format is not working in Safari?
Hello,
Are you using a standard date picker? I mean text question with inputType property equals to "date".
Thank you,
Andrew
SurveyJS Team
Yes, exactly. We are using the standard datepicker with inputType "date". We would prefer that over the custom widget.
Got it.
I guess we need to look at it more closely. I googled this article. We will check the issue and comeback to you.
Thank you,
Andrew
SurveyJS Team
Hello,
It looks like YYYY-MM-DD is included in the standard, but for some reason, Safari doesn't support it (https://stackoverflow.com/questions/4310953/invalid-date-in-safari))
Are you using format property in a survey JSON? Could you share your survey JSON and the steps to reproduce the issue? Is a date entered wrong or it displayed wrong if you set
survey.data
?Thanks, Serge
SurveyJS Team