[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concerning a problem when 2000 rolls around.



There is a bug in Netscape 2.0 when using string dates of 2000 and beyond.
The work-around is to use the alternative number-only format for the Date
object.  Separate the year, month, and day with commas.  This allows you to
create date objects for 2000 and beyond.  Example:

mydate = new Date(Year, Month, Day).

It is also a bug that Netscape crashes with years before 1970.  Obviously it
should just return an error if it can't handle the date.

-- Gordon
http://gmccomb.com/javascript/


At 04:53 PM 3/18/96 GMT, you wrote:
>
>Has anyone else ran into this problem and does anyone know the
>proposed "fix" that will be released??
>
>OK, when using Netscape 2.0 on a WIN95 platform, when I use the
>following :
>
>tDay = new Date("November 28, 1996 12:07:41")
>Year = vDay.getYear()
>
>I get a value of "96".  No problem, docs say it subtracts year
>from1900.
>
>Being curious I decided to try one below 1900, such as:
>
>tDay = new Date("November 28, 1896 12:07:41")
>
>(for those 'old timers' out there)
>Anyway, Netscape illegal operates and closes.
>
>OK, I can see that, that may just be my academic curiousity being
>stupid, BUT.....
>
>the only valid date range I can use it 1970 to 1999.
>So as I said,
>"Has anyone else ran into this problem and does anyone know the
>proposed "fix" that will be released??"
>
>'They' obviously must do somthing by 2000!!
>
>Thanks,
>Lem Brothers
>
>
>
>--------------------------------------------------------------------
>For help about the list, please send a message to 'majordomo@obscure.org'
>with the message body 'help'. To unsubscribe, send a message to
>'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
>List archives and pointer to FAQ: http://www.obscure.org/javascript/
>
>
-- Gordon
http://gmccomb.com/javascript/


--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/