다음을 통해 공유


DateAndTime.DatePart Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member DatePart(DateInterval, DateTime, FirstDayOfWeek, FirstWeekOfYear) Returns an Integer value containing the specified component of a given Date value.
Public methodStatic member DatePart(String, Object, FirstDayOfWeek, FirstWeekOfYear) Returns an Integer value containing the specified component of a given Date value.

Top