+1 888 340 6572

ELDateToDateTime

From MultiCharts

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 December 30th, 1899, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.

Usage

ELDateToDateTime(YYYMMdd)

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

Example

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