MONTH$

Sommaire


month$ returns the string containing the name of the month in the current language.

 

Syntax

   month$( exp_date )
  
month$( exp_num )

 

Parameters

Element

Description

Restrictions

exp_date

Date type expression.

None.

exp_num

Numerical expression.

None.

 

Example

# Date displayed in letters
    Print "Paris, ";day(date$);" ";month$ (date$);" ";year(date$)

 

Description and comments

month$ extracts the name of the month for a valid date.

If the argument is numerical, it is a month number, calculated with modulo 12 (1 for "January", etc.).

The result is a Char type.

 

Associated errors

Error

Description

ERMODE (10)

Incorrect argument.

ERDATE (56)

Incorrect date.

 

Associated key words

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


CONTENTS


Copyright © Sage 1999 - 2007