ELDate (Function)

image\trumpet2.gif Disclaimer

The ELDate function returns a date in EasyLanguage format (YYYMMDD) based on a specified month, date, and year.

Syntax

ELDate(MM,DD,YYYY)

Returns (Integer)

A numeric value that represents the date in EasyLanguage format for the current bar.

Parameters

Name

Type

Description

MM

Numeric

Sets the two digit month code: 01 = January, 12 = December, and so on.

DD

Numeric

Sets the two digit date code: 01 = 1st of the month, 30 = the 30th of the month, and so on.

YYYY

Numeric

Set the four-digit year code: 1998, 2002, 2006, and so on.

Remarks

The values for MM, DD, or YYYY input parameters should always be whole numbers representing valid calendar dates.

For example, in EasyLanguage format, 1020704 = July 4th, 2002, or 991225 = December 25, 1999, where the year is represented as 103 for 2003, 102 for 2002, 101 for 2001, 100 for 2000, 99 for 1999, and so on.

The reserved words date and CurrentDate return numeric date values in this same EasyLanguage format (YYYMMDD).

Example

Assigns to Value1 the numeric EasyLanguage date of 1020704, for the input parameters of; 07,04,2002, (July, 4th, 2002):

Value1 = ELDate(07, 04, 2002);