Rounds the date up to the specified period.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public static DateTime NextRoundedTime(
	DateTime date,
	TimeSpan period
)
Visual Basic (Declaration)
Public Shared Function NextRoundedTime ( _
	date As DateTime, _
	period As TimeSpan _
) As DateTime
Visual C++
public:
static DateTime NextRoundedTime(
	DateTime date, 
	TimeSpan period
)

Parameters

date
Type: System..::.DateTime
input date.
period
Type: System..::.TimeSpan
Desired period.

Return Value

Rounded DateTime instance.

See Also