Year

From NSB App Studio
Revision as of 18:35, 13 September 2012 by Admin (talk | contribs) (→‎Related Items)
Jump to navigation Jump to search

Year(date)

Description

Year returns an integer, that represents the year of the given date.The required parameter, date, can be any expression that represents a date.

Example

Rem Year Example
'Year returns year of a date as an integer
Dim IndepYear, Birthyear
IndepYear = Year("July 4, 1776")
Print "YEAR of July 4, 1776:", IndepYear
Birthyear = Year("12/27/70")
Print "YEAR of 12/27/70:", Birthyear

Output

Year of July 4, 1776:      1776
Year of 12/27/70:    1970

Related Items

Day, Hour, Minute, Month, Now, Second, Time