ELDateToDateTime

From MultiCharts
Jump to: navigation, search

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

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