Day
Description
Returns the day number of a given date.
See this note.
Syntax
int Day(double d[, int n])
Parameters
d
- Date Value of Julian days which can include Time
n
- Optional parameter. There are two options:
-
1 (default) Returns Day of Month : 1 to 31 2 Returns Day of Year : 1 to 366
Return
If it is a Julian days date, return the real value of day in a date(Julian days) value, 1 to 31 or 1 to 366.
If it is not a Julian days date, return missing value.
Example
int aa = Day(2454827.5982639, 2); aa = ;//Should return the day of this time, 362.