Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q1, January 07, 2000 at 09:32:09:

You are here: 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

©2018 Martin Webb