Xbasic
CMONTH Function
Syntax
Month_Name as C = CMONTH(D date[,L localized])
Month_Name as C = CMONTH( D time as T[, localized as L] )
Arguments
- date
A variable containing a date value or a character string containing a legitimate representation of a date value ( ISDATE (Date_Value) = .T.).
- time
A variable containing a date time value.
- localized
Logical. A variable containing .T. if a localized month is requested.
Description
CMONTH() returns the Month_Name in the specified Date or Date_Time. If the optional localized flag is true, report the localized day name. (Localized flag requires Version 10.5 or later).
Example
cmonth(START) -> "March", if START contains 03/07/95 cmonth( ctod( "05/25/95") ) -> "May"
See Also