A newer version of this page is available. Switch to the current version.

TimeScale.Round(DateTime) Method

Calculates the datetime value that is the nearest to the argument value and contains an integer number of specified time units.

Namespace: DevExpress.XtraScheduler

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

Declaration

public virtual DateTime Round(
    DateTime date
)
Public Overridable Function Round(
    date As Date
) As Date

Parameters

Name Type Description
date DateTime

A DateTime value.

Returns

Type Description
DateTime

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

See Also