Skip to main content

ASPxSchedulerDateTimeHelper.CeilDateTime(date, spanInMs) Method

Rounds a DateTime value up to the nearest interval.

#Declaration

TypeScript
static CeilDateTime(
    date: Date,
    spanInMs: any
): Date

#Parameters

Name Type Description
date Date

A DateTime object containing a value to round.

spanInMs any

A TimeSpan object specifying an interval to which to round.

#Returns

Type Description
Date

A DateTime object containing the rounded value.

See Also