Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None

DateAndTime.DatePart Method

 

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

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

Name Description
System_CAPS_pubmethod System_CAPS_static DatePart(DateInterval, DateTime, FirstDayOfWeek, FirstWeekOfYear)

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

System_CAPS_pubmethod System_CAPS_static DatePart(String, Object, FirstDayOfWeek, FirstWeekOfYear)

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

Return to top