This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Sets the minutes component of the given DateTime.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <> SetMinutes(
	 dt,
	int minutes
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function SetMinutes ( _
	dt As , _
	minutes As Integer _
) As (Of )

Parameters

dt
DateTime
A DateTime.
minutes
Int32
The minutes (0 through 59).

Return Value

A new DateTime with the same component values as the given DateTime, except for the minutes component which is set to the given value.

See Also

Advanced