DAY$

Contents


day$ returns the string that contains the name of the day in the current language.

 

Syntax

 

   day$(date_exp)
   day$(num_exp)

 

Parameters

 

Element

Description

Restrictions

date_exp

Date Expression

None

num_exp

Any Numeric Expression

None

 

Example

   # Display of the date in letters
    Infbox day$(date$)-", le"-num$(day(date$))-month$(date$)
   # Display of "Tuesday"
    Infbox day$(dayn([14/07/1992]))

 

Description and Comments

day$ extracts the name of the day corresponding to a valid date. Its parameter can also be a numeric expression corresponding to the row of a day in the week. In this case, its value must be between one (1), Monday and seven (7), Sunday. If it is not, it is converted to the integer of the interval [1, 7] that is congruent to it.

The result type is Char.

 

Associated Errors

 

Error

Description

ERMODE (10)

The parameter is invalid.

 

Associated Keywords

 

DAY - MONTH$ - DATE$ - DATE


CONTENTS

 


Copyright © Sage 1999 - 2007