[thelist] Locale specific date formatting
Hassan Schroeder
hassan at webtuitive.com
Mon Apr 23 10:47:56 CDT 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 at webtuitive.com
Webtuitive Design ---(+1) 408-938-0567 --- http://www.webtuitive.com
-- creating dynamic Web sites and applications since 1994 --
More information about the thelist
mailing list