month Function
Function: |
Returns the month for a given day number. |
Syntax: |
month(daycount as word) as pl_months |
Returns: |
One of pl_months constants: 1- PL_MONTH_JANUARY: January. 2- PL_MONTH_FEBRUARY: February. 3- PL_MONTH_MARCH: March. 4- PL_MONTH_APRIL: April. 5- PL_MONTH_MAY: May. 6- PL_MONTH_JUNE: June. 7- PL_MONTH_JULY: July. 8- PL_MONTH_AUGUST: August. 9- PL_MONTH_SEPTEMBER: September. 10- PL_MONTH_OCTOBER: October. 11- PL_MONTH_NOVEMBER: November. 12- PL_MONTH_DECEMBER: December.
|
See Also: |
Part |
Description |
daycount |
Day number. Base date for the day count is 1-JAN-2000 (this is day #0). |
Examples
** Tibbo Basic **
dim m as pl_months
m = month(32) ' result will be PL_MONTH_FEBRUARY - day number 32 was in February 2000.