Gets the year component of the current date.

Syntax

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

Parameters

Name Data Type Description
dt DateTime A DateTime.

Return Value

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

Expand image Examples

SXML