DateTimeExtensions.Floor Method (DateTime, RoundTo)
Applies To: Dynamics CRM 2013
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 DateTime Floor(
this DateTime d,
RoundTo to
)
public:
[ExtensionAttribute]
static DateTime Floor(
DateTime d,
RoundTo to
)
static member Floor :
d:DateTime *
to:RoundTo -> DateTime
<ExtensionAttribute>
Public Shared Function Floor (
d As Date,
to As RoundTo
) As Date
Parameters
d
Type: System.DateTimeType: DateTime. The date/time.
to
Type: Microsoft.Xrm.Client.RoundToType: RoundTo. The value to round to.
Return Value
Type: System.DateTime
Type: DateTime
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 2013
Return to top