3.5.1.2.7 Month

Description

This function is used to returns the month as an integer from 1 (January) to 12 (December).


See this note.

Syntax

 int Month(double d)

Parameters

d

is a Julian Date Value which can include Time

Return

If it is a Julian days date, return the year, 1 to 12.

If it is not a Julian days date, return -1.

Example

int rr=month(2454821);
rr= ; // Should return the month, 12.

See Also

WeekDay, WeekNum, Year, Day, Hour, Minute, Second, Now,