Hy everyone,
I have been looking for a few days now and I can not find anywhere some PHP function that would give me back datetime format for given locale.
The problem is that a have a site intended for worldwide use so i want to display date and time in format that is used in selected country/locale.
I would put as example smartphones. If you select English(US) language and input date will be formated as mm/dd/yyyy h:s AM/PM and if you select German iz will be dd.mm.yyyy H:i (I think thats te formats)
So does anyone know some way to get this format info or do I have to search for it on the web for all ~230 countries that i have?
Tnx guys, your answers were helpful but not really what I need. I have a config file in wich I set date format that is used over the web. So the thing I would really need some function that would return something like mm/dd/yyyy or dd.mm.yyyy