By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,744 Members | 1,530 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,744 IT Pros & Developers. It's quick & easy.


P: 10
I am trying to obtain a date with this code. I came up with August 8 and a friend thinks it is July 8 so I am confused? If I go with the month ending up as 8then couldn't it even be September?

Now = newDate()
newMonth = Now.getMonth()
newDate = Now.getDate()

I thought that months of the year are 0-11 as getMonth() and days of the week are 1-31 as getDate(). If newMonth = 8 and newDate = 8 then what date should this give?
Mar 18 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
september 8th if I'm calculating right.
Mar 18 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.