YearName

 

Description

Returns the year in string form with input of year or date, with option n.


See this note.

Syntax

string YearName(double d, int n);

Parameters

d

Date Value of Julian days which can include Time

n

there are two options:
0 Returns two digits, like 98, 08
1 (default) Returns two digits, like '98, '08
2 Returns full 4 digits year, 1998, 2008

Return

If the d is a Julian days value, returns the year in string form with input of year or date, 08, '08 or 2008.

If the d is not a Julian days value, returns -1.

Example

string yy$=YearName(2454827.5982639, 2)$;
yy$=;  //Should return the year of this time, 2008.

See Also

MonthName