Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q1

irt.org | About | Feedback | 705 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q1

Sent by
Mike Hughes-Chamberlain on January 07, 2000 at 09:32:09:

Comments:
Sorry, cancel previous feedback - I forgot about the (month-1) trick! The following simplified version works fine:

function isDate (day,month,year) {
var test = new Date(year,month-1,day);
if (day == 0) return false;
if (month == 0) return false;
if (year == 0) return false;
if ((year == test.getFullYear()) &&
(month == test.getMonth() + 1) &&
(day == test.getDate()))
return true
else
return false
}





Other feedback on 'irt.org FAQ Knowledge Base Q1' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.