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

Feedback on: irt.org FAQ Knowledge Base Q29, May 05, 2002 at 04:23:50:

You are here: irt.org | About | Feedback | 3836 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q29

Sent by
michel on May 05, 2002 at 04:23:50:

Comments:
Needs a fix for the year>2000 "feature"

function y2k(year) {
return (year<1900)? year+=1900:year;
}

change to

var now = new Date();
var yearNow = y2k(now.getYear());
var monthNow = now.getMonth();
var dateNow = now.getDate();

var today = new Date(yearNow,monthNow,dateNow,0,0,0); // midnight earlier today


and

var yearDob = y2k(dob.getYear());


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

©2018 Martin Webb