다음을 통해 공유


DateAndTime.DateDiff 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 a Long value specifying the number of time intervals between two Date values.

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 DateDiff(DateInterval, DateTime, DateTime, FirstDayOfWeek, FirstWeekOfYear) Returns a Long value specifying the number of time intervals between two Date values.
Public methodStatic member DateDiff(String, Object, Object, FirstDayOfWeek, FirstWeekOfYear) Returns a Long value specifying the number of time intervals between two Date values.

Top