Sets the minutes component of the given DateTime.

Syntax

Smartsite SXML CopyCode image Copy Code
datetime datetime.setminutes(datetime dt, integer minutes)

Parameters

Name Data Type Description
dt DateTime A DateTime.
minutes Integer The minutes (0 through 59).

Return Value

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

Expand image Example

SXML