• Resolved ssgupta

    (@ssgupta)


    While different browsers show different date formats for the date field in the Admin side, the output on the front side is always YYYY.MM.DD.

    Is there a way to have front end output per date format in general settings?

    Thank you.

    NB: Firefox doesn’t supports the date field at all.

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The field type “date” is an HTML5 specification. It is always in the format YYYY-MM-DD. You cannot change it.

    Different browsers will handle it differently because they are unrestricted in how they display it (not to be confused with how the data is transported, which will always be YYYY-MM-DD). Webkit and Edge provide datepickers and may also format based on the user’s locale. Firefox does not support it by default but has it as “experimental“.

    If you want something that you can customize in terms of the format accepted, you should use a text field with a date pattern (regular expression or “regex”, which the plugin now also supports).

Viewing 1 replies (of 1 total)
  • The topic ‘Date Format’ is closed to new replies.