Skip to main content
A newer version of this page is available. .

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.v18.2.Core.dll

Declaration

public abstract DateTime Floor(
    DateTime date
)

Parameters

Name Type Description
date DateTime

A DateTime value.

Returns

Type Description
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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Floor(DateTime) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also