Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape 6.2 & built in date functions

Status
Not open for further replies.

jlawler

Programmer
Feb 26, 2003
14
IE
I have the following piece of javascript code which evaluates if the value passed into a form is a valid date or not. The code works fine in IE and Netscape 4.75, but it doesn't in Netscape 6.2.

What can I do to make my code compatible to all three browser versions?

<code>
isDate(document.forms[sForm].elements[&quot;qq_yyyy&quot;+sLife].value, document.forms[sForm].elements[&quot;qq_mm&quot;+sLife].value, document.forms[sForm].elements[&quot;qq_dd&quot;+sLife].value)
</code>

returns true when a valid date is passed in
returns false otherwise.

Any help is much appreciated

Thanks
jlawler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top