DateTimeExtensions Class

 

Applies To: Dynamics CRM 2015

Extensions to the date/time class. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.DateTimeExtensions

Syntax

public static class DateTimeExtensions
[ExtensionAttribute]
public ref class DateTimeExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type DateTimeExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class DateTimeExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Floor(DateTime, RoundTo)

Returns the largest discrete value less than or equal to the specified value.

System_CAPS_pubmethodSystem_CAPS_static Floor(DateTimeOffset, RoundTo)

Returns the largest discrete value less than or equal to the specified value.

System_CAPS_pubmethodSystem_CAPS_static Round(DateTime, RoundTo)

Rounds a value to the nearest discrete value.

System_CAPS_pubmethodSystem_CAPS_static Round(DateTimeOffset, RoundTo)

Rounds a value to the nearest discrete value.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright