DateTimeExtensions..::..Ceiling Method

Ceiling the given DateTime object by the given time interval. i.e. 10:01 ceilinged by 10 minutes would be 10:10

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static DateTime Ceiling(
	DateTime dt,
	TimeSpan interval
)

Parameters

dt
Type: DateTime
The given DateTime object
interval
Type: TimeSpan
The time interval to ceiling by

Return Value

The new ceilinged DateTime object