How to detect a users date/time locale in PHP?
Posted on 2008-10-26
Is it possible to detect a users locale in PHP so that I can display a date in their country format.
i.e. if a user from the US visits the site they see the date in mm/dd/yyyy format, and if someone from the UK visits the site then they see it in dd/mm/yyyy.
ASP.Net does this automatically, I'm wondering if it is possible to do it in PHP (by reading their browser settings, not loooking up their IP addres).