>If ldDate is Date.Now, how come I add one month and it gives November 30, 2011?
>
>
>Dim ldDate As Date = Date.Now
>Dim lnMonth As Integer = 0
>ldDate = ldDate.AddMonths(lnMonth)
>
>
>We are the 31st. So, isn't adding one month should bounced it back to November 31st, 2011?
If there will be 31 days in Novemeber, it might have bounced there. Alas, there are only 30 days in the Gregorian Calendar.
If it's not broken, fix it until it is.
My Blog