Xbasic
MONTH_NUMBER Function
Syntax
Month_Number as N = month_number(C month )
Arguments
- month
The English name of a month. The MONTH_NUMBER() function is case insensitive. Character
Description
Returns the month number for a given month name
Discussion
MONTH_NUMBER() returns the month number (1 to 12) for a given month name. Returns 0 when the Month_Name expression cannot be interpreted.
Example
month_number("ApRil") -> 4.000000 month_number("January 20, 1950") -> 1.000000 month_number("1/20/50") -> 0.000000
See Also