[thelist] Locale specific date formatting
Hassan Schroeder
hassan@webtuitive.com
Mon Apr 23 10:47:56 2001
Chris Evans wrote:
>
> I was reading about a web-based application where the date and time were
> formatted automatically to the users locale.
/* I assume you're talking client-side */
The JavaScript Date() constructor has a toLocaleString() method, as
in:
var thisDate = new Date();
var localizedDate = thisDate.toLocaleString();
HTH!
--
H*
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ---(+1) 408-938-0567 --- http://www.webtuitive.com
-- creating dynamic Web sites and applications since 1994 --