Year()
Converts the year portion of a date into a numeric value
Syntax
Year(<cDate>) --> nYear
Arguments
<dDate> Any valid date expression
Returns
<nYear> The year portion of the date.
Description
This function returns the numeric value for the year in <dDate>. This value will always be a four-digit number and is not affected by the setting of the SET CENTURY and SET DATE commands.
Addition ally, an empty date expression passed to this function will yield a zero value.
Examples
? Year( Date() ) ? Year( hb_SToD( "32510125" ) )
Compliance
Clipper
Platforms
All
Files
Library is core
Seealso
Day(), Month()
Pingback: Harbour All Functions – Y | Viva Clipper !
Pingback: Harbour Date & Time Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !