This document is archived and information here might be outdated. Recommended version. |
Adjust the day value, to the last day in the current month and year.
[Visual Basic .NET]
Public Sub SnapToEndOfMonth ( _
)
[C#] public void SnapToEndOfMonth ( );
[C++]
HRESULT SnapToEndOfMonth(
void
);
SnapToEndOfMonth changes the current date of the Time object, but not the hours, minutes, or seconds. It changes the date to the last day of the month. If the current month is February, then the resulting date will depend on if the current year is a leap year.