ELDateToString (Function)
The ELDateToString function returns a 10-character date string in MM/DD/YYYY format from the EasyLanguage date specified. Example: 1020704 = "07/04/2002"
Syntax
ELDateToString(DateSelect)
Returns (String)
A text string containing a 10-character date in MM/DD/YYYY format for the current bar.
Parameter
Name |
Type |
Description |
DateSelect |
Numeric |
Sets the target date, entered in the EL format "YYYMMDD" or a numeric date related function or calculation. |
Remarks
The value for the DateSelect input parameter can be any valid date (past or future) in EasyLanguage format.
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 EasyLanguage format (YYYMMDD).
Example
Assigns to Value1 the text string for the numeric EasyLanguage date of 1020704 (July 4th, 2002):
Value1 = ELDateToString(1020704);
Assigns to Value1 the text string for the current datafeed time:
Value1 = ELDateToString(CurrentDate);
Assigns to Value1 the text string for the current bar date:
Value1 = ELDateToString(Date);