DateTimeExtensions Class
Applies To: Dynamics CRM 2013
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 | |
---|---|---|
Floor(DateTime, RoundTo) | Returns the largest discrete value less than or equal to the specified value. |
|
Floor(DateTimeOffset, RoundTo) | Returns the largest discrete value less than or equal to the specified value. |
|
Round(DateTime, RoundTo) | Rounds a value to the nearest discrete value. |
|
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 2013
Return to top