We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Todays Date and Tommorows Date in format dd MMMM yyyy

Fuzzy_VB
Fuzzy_VB asked
on
Medium Priority
2,839 Views
Last Modified: 2007-12-19
hello the title pretty much says it all.
i want to display todays date and then tommorows date in format
'11 April 2004'
'12 April 2004'

but i am clueless when it comes to adding 1 day.
thanks.

Fuzz.
Comment
Watch Question

Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
Better to use getFullYear()
CERTIFIED EXPERT

Commented:
apprenti is right, for mozilla and opera d.getYear() returns 104

also:
d = new Date(new Date().valueOf());  -->  d = new Date();

Author

Commented:
thanks apprenti and devic.
if only i could spread the love ;)

cheers.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.