[thelist] javascript date madness....
Anthony Baratta
Anthony at Baratta.com
Wed, 05 Jan 2000 14:42:42 -0800
Bob Davis wrote:
>
> on 01/05/2000 4:50 PM, Aylard James J at jaylard@equilon.com wrote:
>
> > If you can restrict your script to JavaScript 1.3, use the getFullYear
> > method.
>
> Remember, though, that IE 4.5 for Mac doesn't understand JavaScript 1.3 and
> complains bitterly about it. (which, presumably, is why you have the
> caveat.)
Which is why the frustration is so high. I don't know either which
browsers have implemented 1.3. So here's my hack:
CurrentYear = CurrentDate.getYear();
if (CurrentYear < 1000) {
CurrentYear = CurrentYear +1900;
}
Laugh if you must - I have to in order to say sane. ;^P
--
Anthony Baratta