MonthName

 

Description

Returns the Month name in the specified format.


See this note.

Syntax

string MonthName(double d[, int n]);

Parameters

d

Date Value of Julian days which can include Time

n

there are four options:
1 Returns single character : J, F, etc.
3 (default) Returns 3 characters : Jan, Feb, etc.
0 Returns full name : January, February, etc.
-1 Returns 3 character English name regardless of the current language used

Return

If the d is a Julian days value, returns the month name in string form specified by n, "D", "Dec", "December" or 3 character English name regardless of the current language used.

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

Example

string yy$=MonthName(2454827.5982639, 0)$;
yy$=;  //Should return the Month of this time, December.

See Also

WeekDayName