This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITime Interface > ITime.SnapToEndOfMonth Method (ArcObjects .NET 10.4 SDK) |
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.