JohnnyZ Posted April 5, 2005 Posted April 5, 2005 I need to calculate a date by a certain number of months later; i.e. if the date is April 5,2005, I need a date exactly 6 months later. How can I make a calculation that will account for 30, 31, 28, or 29-day months?
comment Posted April 5, 2005 Posted April 5, 2005 The question is not clear: in order to add "exactly 6 months" to DateX, use: Date ( Month ( DateX ) + 6 ; Day ( DateX ) ; Year ( DateX ) ) If your question is concerned with DateX being, say August 31 (which will produce March 3 in the formula above), that is another matter.
JohnnyZ Posted April 6, 2005 Author Posted April 6, 2005 Thanks, that is the general formula I was looking for.
Recommended Posts
This topic is 7240 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now