EOMONTH

Contents


eomonth returns the date for the last day of the month in the year for the date given in the parameter.

 

Syntax

   eomonth( exp_date )

 

Parameters

Element

Description

Restrictions

exp_date

Date type expression.

None.

 

Examples

# Search for the last day of the month
day$(eomonth(date$))

 

Description and comments

The function eomonth returns the date for the last day of the month for the date given in the parameter.

The result is a Date type.

 

Associated errors

Error

Description

ERMODE (10)

Incorrect argument.

ERDATE (56)

Incorrect date.

 

Associated key words

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


CONTENTS


Copyright © Sage 1999 - 2007