date - next month and next year

February 17, 2009 at 09:29:15
Specs: Windows XP
Hello,
Based on the current date, I need to calculate the next month and the next year (batch file/dos). Does anyone know how to do it?
Thks.

See More: date - next month and next year

Report •


#1
February 17, 2009 at 13:48:47
Unfortunately date manipulation in batch scripting is very limited. On the other hand using VBS or the utility Doff.exe gives a solution.

See: http://www.computerhope.com/forum/i... for examples.

Good luck


Report •

#2
February 18, 2009 at 04:28:23
mysql does it pretty neatly as well

SELECT NOW() + INTERVAL 1 MONTH;

You can send the command through a batch and kick it to a text file if you have a mysql server knocking around


Report •

Related Solutions


Ask Question