Hi,
I'm going crazy trying to figure this out and hoping maybe some one knows the answer or can point me in the right direction.
I have a web site that I want to add a date to - I want it to be formatted like this: January 22, 2002.
I'm working in Dreamweaver and I found a JavaScript code that works great but only in Explorer. When I preview the page in Netscape the date looks like this: January 22, 102
Any ideas? I know my Netscape is outdates (4.51) but ideally I would like the date to work in this version since some people are still using it.
I'm pretty sure the part of the code creating the problem is this:
return months[date.getMonth()] + " " +
date.getDate() + ", " + (+ date.getYear());
Any help or suggestions are greatly appreciated.
Thanks
I'm going crazy trying to figure this out and hoping maybe some one knows the answer or can point me in the right direction.
I have a web site that I want to add a date to - I want it to be formatted like this: January 22, 2002.
I'm working in Dreamweaver and I found a JavaScript code that works great but only in Explorer. When I preview the page in Netscape the date looks like this: January 22, 102
Any ideas? I know my Netscape is outdates (4.51) but ideally I would like the date to work in this version since some people are still using it.
I'm pretty sure the part of the code creating the problem is this:
return months[date.getMonth()] + " " +
date.getDate() + ", " + (+ date.getYear());
Any help or suggestions are greatly appreciated.
Thanks