XF 2.2 date format for admin

Robert9

Well-known member
normally i would show date("d.m.Y", time
but if the admin uses m.d.Y i should change that.
How can i do that inside a function, please?

...

we have date_format for every language;
so i need the info which language we have and from this which date_format should be used.
Then i can do date("$date_format", ...)

How can i get the date_format for the language an admin is using, please?
 
Last edited:
Top Bottom