J
John Kiernan
Hey JavaScript gurus!
Here's a weird one:
If I check (with an alert) this line:
vStrDate2 = vDate.toLocaleString();
I get: Saturday, August 14, 2004 7:57:30 PM (as I should)
but this operation...
vStrDate = vDate.getMonth() + "/" + vDate.getDate() + "/" + vDate.getYear();
Avails me: 7/14/2004 (!?!?!?!)
I check my computer date and it definitely believes (as do I) that it is
August. Any idea why getmonth() thinks it's July?
Also, is there an easier way to get this American date string?
TIA!
-- John Kiernan, KierPro Associates
Custom VFP/Accounting Programming
and Web interfaces
VFP and/or SQL back ends
Here's a weird one:
If I check (with an alert) this line:
vStrDate2 = vDate.toLocaleString();
I get: Saturday, August 14, 2004 7:57:30 PM (as I should)
but this operation...
vStrDate = vDate.getMonth() + "/" + vDate.getDate() + "/" + vDate.getYear();
Avails me: 7/14/2004 (!?!?!?!)
I check my computer date and it definitely believes (as do I) that it is
August. Any idea why getmonth() thinks it's July?
Also, is there an easier way to get this American date string?
TIA!
-- John Kiernan, KierPro Associates
Custom VFP/Accounting Programming
and Web interfaces
VFP and/or SQL back ends