Gets the month component of the current date.

Syntax

Smartsite SXML CopyCode image Copy Code
integer datetime.getmonth()
integer datetime.getmonth(datetime dt)

Parameters

Name Data Type Description
dt DateTime A DateTime.

Return Value

Data Type Description
Integer The month component of the current date.

Expand image Examples

SXML