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