Skip to end of banner
Go to start of banner

year

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

Returns the year of the provided date.

Parameters

Return Type

Number

Examples

Example 1

print("Year is " + year(currentDate()));

Example 2

date varDateTime = "2011-08-17T18:30:55";
print("Year is " + year(varDateTime));

Print Year is 2011.

See also

  • No labels