Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > I

IYR

Scroll Prev Top Next More

(IYR(arg))

 

Where arg is a value that has a DATE or DATETIME data type, IYR returns a two or four-digit integer year of date, depending on how the DATE format is set.

 

In the following example, the value of viyr is 1995 if the year in the DATE format is set to YYYY. The value of viyr is 95 if the year in the DATE format is set to YY.

 

SET VAR viyr = (IYR('09/13/95'))