DateTimeExtensions..::..SetTime Method (DateTime, Int32)

Sets the time.

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

Syntax


public static DateTime SetTime(
	DateTime date,
	int hour
)

Parameters

date
Type: DateTime
The date.
hour
Type: Int32
The hour.

Return Value

returns DateTime