TimeScaleWeek.Floor(DateTime) Method

Calculates the largest datetime value that is less or equal to the argument and represents an integer number of weeks.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll

Declaration

public override DateTime Floor(
    DateTime date
)
Public Overrides Function Floor(
    date As Date
) As Date

Parameters

Name Type Description
date DateTime

A DateTime value.

Returns

Type Description
DateTime

A DateTime value representing an argument rounded to weeks.

Remarks

The method considers the TimeScaleWeek.FirstDayOfWeek property value in calculation.

See Also