DateAndTime.DatePart Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDatePart(DateInterval, DateTime, FirstDayOfWeek, FirstWeekOfYear)

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

System_CAPS_pubmethodSystem_CAPS_staticDatePart(String, Object, FirstDayOfWeek, FirstWeekOfYear)

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

Return to top
Show: