DateTimeExtensions.Floor Method (DateTimeOffset, RoundTo)
Applies To: Dynamics CRM 2015
Returns the largest discrete value less than or equal to the specified value.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static DateTimeOffset Floor(
this DateTimeOffset d,
RoundTo to
)
public:
[ExtensionAttribute]
static DateTimeOffset Floor(
DateTimeOffset d,
RoundTo to
)
static member Floor :
d:DateTimeOffset *
to:RoundTo -> DateTimeOffset
<ExtensionAttribute>
Public Shared Function Floor (
d As DateTimeOffset,
to As RoundTo
) As DateTimeOffset
Parameters
d
Type: System.DateTimeOffsetType: DateTime. The date/time offset.
to
Type: Microsoft.Xrm.Client.RoundToType: RoundTo. The value to round to.
Return Value
Type: System.DateTimeOffset
Type: DateTimeOffset
The largest discrete value less than or equal to the specified value.
See Also
Floor Overload
DateTimeExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright