DAYN

Contents


dayn returns the position of the day in the week for a date.

 

Syntax

   dayn( exp_date )

 

Parameters

Element

Description

Restrictions

exp_date

Date type expression.

None.

 

Example

 

   # What day of the week is it?
   
 JRCOUR = dayn(date$)

 

Description and comments

dayn returns the position of the day in the week for a valid date.
The position is from 1 (Monday) to 7 (Sunday).

The result is an Integer type.

 

Associated errors

Error

Description

ERMODE (10)

Incorrect argument.

EEDATE (56)

Incorrect date.

 

Associated key words

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

 


CONTENTS


Copyright © Sage 1999 - 2007