×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

ELDateToDateTime

998 bytes added, 12:13, 19 January 2012
Created page with "Returns the integer portion of a double-precision decimal DateTime value corresponding to the specified EL Date. EL Date is specified in the YYYMMdd format, where YYY is the..."
Returns the integer portion of a double-precision decimal DateTime value corresponding to the specified EL Date.

EL Date is specified in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.

The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.

==== Usage ====
<syntaxhighlight>ELDateToDateTime(YYYMMdd)</syntaxhighlight>

Where: [[YYYMMdd]] - a numerical expression, specifying the date in EL YYYMMdd format

==== Example ====
<syntaxhighlight>ELDateToDateTime(1080101) will return a value of 39448.00000000,

corresponding to the specified date of January 1st, 2008

ELDateToDateTime(990402) will return a value of 36252.00000000,

corresponding to the specified date of April 2nd, 1999</syntaxhighlight>




[[Category:Date and Time Routines]]
Anonymous user