I need the javascript for displaying the date one month from today in the format of August 18, 2008
With some months being shorter and the problems that come up when it branches into a new year, I\'m having trouble with it.
If it\'s too complicated, I\'d settle for a javascript that showed the first of whatever two months from today is: September 1, 2008, although that one still gets tricky when the dates branch into a new year...
Anybody?
Found this somewhere else and it might help if you know about this kind of stuff:
var oneMinute = 60 * 1000 // milliseconds in a minute
var oneHour = oneMinute * 60
var oneDay = oneHour * 24
var oneWeek = oneDay * 7
var today = new Date()
var dateInMS = today.getTime() + oneWeek * 5
var targetDate = new Date(dateInMS)