Agnes,
Given a DateTime variable, you can use DateTime.AddMonths to add months.
Dim today As DateTime = #12/23/2004#
Dim nextMonth as DateTime = today.AddMonths(1)
DateTime also has methods for adding Days, Hours, Minutes, Milliseconds, and
Seconds to a DateTime value.
Hope this helps
Jay
"Agnes" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> e.g today is 23-12-2004, i should get nextmonth of today 23-01-2005
> I know DaysAdd(noofdays) ,but I don't know noofdays should be 30 or 31 ?
> Thanks a lot
>
>
|