Hello,
I’m getting the following preferences in order to check the date format that date picker accepts.
/rest/api/3/mypreferences?key=jira.date.picker.javascript.format
The current response: %e/%b/%y
Does anyone know how to format a date using this format? I tried to use moment-strftime but most of the generated dates are invalid for the date picker.
Keep in mind that Jira uses Unix formatting instead of Unicode TR35.
If I remember correctly, %e maps to dd, %b to MMM and %y to yy if you’re using moment.
I initially used moment with unix formatting, but it’s placing dots after the abbreviated month for some locales. When those dots are displayed inside the date picker, the date isn’t valid for submission.
It looks like date-fns doesn’t support unit formatting since v1. But using the latest version of date-fns with the java.format seems to work…