Open pbowen-oc opened 5 years ago
This approach looks somewhat promising: https://codepen.io/MartijnR/pen/PXJEZG?editors=1010
In the main Enketo I think it makes sense to link the format to the locale (form language, and otherwise browser language). But we could perhaps create a way to override this. Tbc..
make rough estimate
For consistency, might be good to use the format identifiers from the format-date function: https://opendatakit.github.io/xforms-spec/#fn:format-date, and use a prefix. E.g.:
@pbowen-oc, my best estimate is 45 hours +/- 25 hours
We have had requests for a way to standardize date display across different devices/browsers. Right now, the format the dates are displayed in often doesn't meet our users' guidelines and it also varies just based on whether the form is opened on a phone or laptop (and I think maybe also from browser to browser).
For example, some users would like dates to always be displayed as "mm/dd/yyyy", while other would prefer "dd-mon-yyyy". Could we add a few appearance options for date items that would display the date value in the format corresponding to the appearance regardless of the environment of the the user who opens the form? This would not change how dates are selected via the date picker.