Compartilhar via


SqlMethods.DateDiffMillisecond 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

Counts the number of millisecond boundaries between two specified dates.

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 memberSupported by Silverlight for Windows Phone DateDiffMillisecond(DateTime, DateTime) Counts the number of millisecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(Nullable<DateTime>, Nullable<DateTime>) Counts the number of millisecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(DateTimeOffset, DateTimeOffset) Counts the number of millisecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of millisecond boundaries between two nullable dates.

Top

Remarks

Corresponds to the SQL Server DATEDIFF function; using millisecond to specify the type of time boundary crossed. For more about this SQL Server function, see DATEDIFF in the Microsoft SQL Server Books Online.