Hello guys,this time i will show to you, the use of DateAdd Function, this function will use
for adding day(s) to a given date, for example i want to add 5 days on this given date
"2/7/2011",so obviously we want the answer become "2/12/2011", to get this answer,just
simply follow this code:
DateAdd("d", 5, "2/7/2011")
since i am dealing with day(s) to add, this will represent with "d" if you want to add a
month(s), just replace "d" with "m" so its simple as counting 123.......
Happy Coding ^_^
The Hardest thing to do is to do Nothing ^_^
for adding day(s) to a given date, for example i want to add 5 days on this given date
"2/7/2011",so obviously we want the answer become "2/12/2011", to get this answer,just
simply follow this code:
DateAdd("d", 5, "2/7/2011")
since i am dealing with day(s) to add, this will represent with "d" if you want to add a
month(s), just replace "d" with "m" so its simple as counting 123.......
Happy Coding ^_^
The Hardest thing to do is to do Nothing ^_^
Tags:
VB6 Functions,
Visual Basic 6.0
Leave a comment