GetYearAsString

This function evaluates to the year of the given datetime as a string.

Description

The year as a string.

Type

STRING

Arguments

Type

Meaning

1

DATETIME

the datetime

Evaluation

The datetime argument; which may be specified symbolically, is converted into an actual datetime and the year is returned as a string. This function requires that the datetime be at least partially specified with a valid year, E.g. @"Year 2010" or @"Current Year" will work.

Comments

As elsewhere in RiverWare, 24:00 hours is considered to be the day which is ending, and 00:00 hours is considered to be the day which is just beginning.

 
GetYearAsString(@"February 23, 1996")
 
"1996"