This document is archived and information here might be outdated.  Recommended version.


ITime.SnapToEndOfMonth Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITime Interface > ITime.SnapToEndOfMonth Method
ArcGIS Developer Help

ITime.SnapToEndOfMonth Method

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
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

ITime Interface