<< Click to Display Table of Contents >>
Manual > Control Reference > Route > Route Methods >
Get the year from the date and time.
syntax
GetYear(
time
[,timeZone]
)
Parameters
Type:
Date and time.
timeZone
character
Time zone.
Return Value
Number
The year, or -1 on failure.
Explanation
Gets the year from the time.
For more information about time zones, see "Date and time formats".
Supported
○
Script Action
Can be used in server script Ver2 actions
Browser script
Can be used in browser scripts
Calculation formula syntax
Can be used in expression syntax (e.g. bind syntax)
reference
GetTickTime
GetTickTimeSpan
GetClientTime
IsCurrentTime
GetRelativeTime
GetYear
GetMonth
GetDay
GetHour
GetMinute
GetSecond
GetMilliseconds
GetDayOfYear
GetDayOfWeek