Computing.Net > Forums > Programming > date - next month and next year

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

date - next month and next year

Reply to Message Icon

Name: dordaleabi
Date: February 17, 2009 at 09:29:15 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Valerie (by Garibaldi)
Date: February 17, 2009 at 13:48:47 Pacific
Reply:

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


0

Response Number 2
Name: jon_k
Date: February 18, 2009 at 04:28:23 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: date - next month and next year

Calculating months and years with VBA!?? www.computing.net/answers/programming/calculating-months-and-years-with-vba/2412.html

Day of year to month and day www.computing.net/answers/programming/day-of-year-to-month-and-day/7031.html

ACCESS: Now() or DatePart() Funct www.computing.net/answers/programming/access-now-or-datepart-funct/6085.html