YEAR

Contents


year extracts the year from a date.

 

Syntax

   year( exp_date )

 

Parameters

Element

Description

Restrictions

exp_date

Date type expression.

None.

 

Example

   # What year is it?
    ANCOUR = year (date$)

 

Description and comments

year extracts the year from a valid date.

The result is an Integer type.

 

Associated errors

Error

Description

ERMODE (10)

Incorrect argument.

ERDATE (56)

Incorrect date

 

Associated key words

MONTH - DAY - MONTH$ - DAY$ - GDAT$ - DAYN - NDAY - NDAY$ - DATE$ - DATESYST - DATE


CONTENTS


Copyright © Sage 1999 - 2007