[Javascript] ARGH! Help with Dates!

Dave Stoltz dstoltz at shh.org
Fri Jan 2 14:29:16 CST 2004


Wow - thanks for that tip! 

-----Original Message-----
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Hassan Schroeder
Sent: Friday, January 02, 2004 3:00 PM
To: [JavaScript List]
Subject: Re: [Javascript] ARGH! Help with Dates!

Dave Stoltz wrote:
> Thanks - then actually I just need to add 1 do the month, then my code 
> works...

Uh, well, not quite -- if you really want

 > EXACTLY this format: 1/4/2004 5:45 PM

you'll need to change this
>      y = cDate.getYear();

to
	y = cDate.getFullYear();

Otherwise you'll get 1/4/104 in Netscape/Mozilla  :-)

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

                           dream.  code.



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list