Sets the milliseconds component of the given DateTime.

Syntax

Smartsite SXML CopyCode image Copy Code
datetime datetime.setmilliseconds(datetime dt, integer milliSeconds)

Parameters

Name Data Type Description
dt DateTime A DateTime.
milliSeconds Integer The milliseconds (0 through 999).

Return Value

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

Expand image Example

SXML