There is a very simple problem. I have a locale identifier, en, en_US, cs_CZ or whatever. I just need to get the date-time format for that locale. I know I can easily format any timestamp or date object according to the locale. But I need just the string representation of the date format, let’s say a regular expression. Is there any function managing this functionality? I haven’t found any so far…
Exapmle:
$locale = "en_US";
$format = the_function_i_need($locale);
echo $format; // prints something like "month/day/year, hour:minute"
converted from comment:
you will have to build an array with a list of the possibilities.
http://en.wikipedia.org/wiki/Date_format_by_country should help.
post the function somewhere when done, i’m sure it would come in handy for others