xHarbour Reference Documentation > Function Reference |
Extracts the numeric month number from a Date value.
Month( <dDate> ) --> nMonth
The function returns the numeric month number of <dDate>. When <dDate> is an empty date, the function returns zero.
This function is used to extract the numeric month from a Date value.
See also: | CMonth(), Day(), DoW(), Hour(), Minute(), Secs(), Year() |
Category: | Conversion functions , Date and time |
Source: | rtl\dateshb.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example shows results of the function Month() PROCEDURE Main ? Date() // result: 02/25/06 ? Month( Date() ) // result: 2 ? Month( Date() + 7 ) // result: 3 RETURN
http://www.xHarbour.com