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

coder81's avatar

Where to manage and save the date format preferences?

In my application I have registered user with their preference, and guest user.

I want to print the dates with their native format, for example an american user want to see a date with mm-dd-yyyy format, but an european user want to see a date with dd-mm-yyyy format.

For registred users I have a language preference in their settings, and for guest user I think to use the language setting passed by browser.

What is the best way to set the date format in the entire application, and where is the right place to set this config?

0 likes
2 replies
coder81's avatar

I was referring to the date format rather than the timezone

Please or to participate in this conversation.