[thelist] Date formatting woes ...

Hassan Schroeder hassan at webtuitive.com
Fri Oct 15 12:54:50 CDT 2004


Rob Smith wrote:

> One of the things I was pondering was that I detect the user's location and
> flip a toggle switch to where ever there is a date coming out of the server,
> it flips it over the to the Europe standard. Visa Versa for the US folks.
> 
> My brain is a little fried this morning, can you offer some strategies in
> your multi-national experience and finding a norm that's not confusing? 

You can use the Accept-Language or Accept-Charset headers to try to
determine the user's locale, and/or let them set it explicitly (for
the session duration or with a permanent cookie).

Then just use the Locale formatting capability of whatever language
you're using.

FWIW!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.




More information about the thelist mailing list