This documentation is archived and is not being maintained.

DateAndTime.DatePart Method

Returns an Integer value containing the specified component of a given Date value.

Name Description
DateAndTime.DatePart (DateInterval, DateTime, FirstDayOfWeek, FirstWeekOfYear) Returns an Integer value containing the specified component of a given Date value.

Supported by the .NET Compact Framework.

DateAndTime.DatePart (String, Object, FirstDayOfWeek, FirstWeekOfYear) Returns an Integer value containing the specified component of a given Date value.

Supported by the .NET Compact Framework.

For more detailed information, see the Visual Basic topic DatePart Function (Visual Basic).

Show: