Back to Devexpress

TimeScale.Floor(DateTime) Method

corelibraries-devexpress-dot-xtrascheduler-dot-timescale-dot-floor-x28-system-dot-datetime-x29.md

latest1.8 KB
Original Source

TimeScale.Floor(DateTime) Method

Calculates the largest datetime value that is less or equal to the argument and contains an integer number of specified time units.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public abstract DateTime Floor(
    DateTime date
)
vb
Public MustOverride Function Floor(
    date As Date
) As Date

Parameters

NameTypeDescription
dateDateTime

A DateTime value.

|

Returns

TypeDescription
DateTime

A DateTime value representing a datetime argument rounded to certain datetime unit.

|

Remarks

This method should be overridden in descendants of the TimeScale class.

See Also

Ceil(DateTime)

Round(DateTime)

TimeScale Class

TimeScale Members

DevExpress.XtraScheduler Namespace