Year()

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()

Advertisements

3 responses to “Year()

  1. Pingback: Harbour All Functions – Y | Viva Clipper !

  2. Pingback: Harbour Date & Time Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s