I\'ve a var example = \"05-10-1983\"
How I can get the \"next day\" of the string example?
I\'ve try to use Date object...b
You can do the following:
var nextDay;
var example = "05-10-1983";
nextDay = new Date(example);
nextDay.setDate(nextDay.getDate() + 1);
#getDate
/#setDate
gets/sets the current day of the month (1-31).
After the above is run, nextDay
will be set to whatever tomorrow's date is. This will also rollover to the next month / year if it's the end of the month, and even handle leap years. :)