Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

knubbe82's avatar

Change format of input type date field (bootstrap)

Is there a way to change format of input date field to dd/mm/YYYY?

0 likes
2 replies
D9705996's avatar

The date is displayed in the users locale as per mdn when using the native data input type.

One thing to note is that the displayed date format differs from the actual value — the displayed date format will be chosen based on the set locale of the user's browser, whereas the date value is always formatted yyyy-mm-dd.

If you want more control you would need to look at a plugin there are loads to choose from so Google but this one was top and has a format option.

https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#quick-reference

Please or to participate in this conversation.