Since “mm” displays the month, I wasn’t sure
Format(now + 1, "mm")
will now + 1 month or + 1 day
Which one is correct?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Now + 1 adds one day. Doesn’t matter how you’re formatting it.
Dates are stored internally as the whole part of a real number, and are calculated as the number of days since Dec 30, 1899.
So today, Sept 20, 2012, is stored internally as 41172. Tomorrow will be 41173.
And in case you’re wondering, time is stored as the decimal part of the number, and is calculated as the percent of the day. So 41172.5 would be noon today.