|
-
Apr 20th, 2001, 08:28 AM
#1
Thread Starter
Hyperactive Member
I have the following code to get the current date, but on the output the date is appearing as '5 3 2001' which it obviously isn't. I've checked my computers date checkings, which are correct, so what am I doing wrong?
var today = new Date();
var now = today.getDate();
var theday = today.getDay();
var themonth = today.getMonth();
var theyear = today.getYear();
Response.Write (theday + " " + themonth + " " + theyear + " is the month<BR>")
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|