Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateAdd(interval, number, date)..Pls help

Status
Not open for further replies.

bnath001

Programmer
Aug 18, 2000
100
US
Hi,

I am using VB5. I am using DateAdd(interval, number, date)
function. In the interval parameter I need to use half year (6 months). But in the help I don't find that interval. The intervals has quarter, month, seconds, hours, days but not Half year . Can some one give me some idea how to implement this please.


thank you
nath
 
You've almost managed to answer the question yourself, without realising it. A half year is 6 months, as you note - so just use DateAdd with an interval of months, and use 6 of them:

DateAdd(&quot;m&quot;,6,<whatever_date>)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top