xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Day()

Extracts the numeric day number from a Date value.

Syntax

Day( <dDate> ) --> nDay

Arguments

<dDate>
This is an expression returning a value of data type Date.

Return

The function returns the numeric day number of <dDate>. When <dDate> is an empty date, the function returns zero.

Description

This function is used to extract the numeric day of a month from a Date value.

Info

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

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe