View Single Post
Old 11-15-2012, 10:31 PM   PM User | #6
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,229
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Trouble is, JavaScript will *NOT* display Feb 29, 1900 or Feb 29, 2100.

If you do
Code:
    var theDate = new Date( 1900, 1, 29 ); // 1 is February in JS code
    document.write( theDate );
JavaScript *will* display "March 1, 1900" back at you.

So in order to display "Feb 29, 1900" you will have to not use JavaScript's Date() object *AT ALL* and essentially re-create the entire calendar system.

Of course it can be done. It's just a real pain in the patootie and you are asking a lot to have somebody write that all for you.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote