×

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

Changes

Jump to navigation Jump to search

EncodeDate

124 bytes added, 13:06, 19 February 2012
no edit summary
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>EncodeDate(yy,MM,dd)</syntaxhighlight>
Where: [[ :'''yy]] ''' - a numerical expression specifying the two-digit year. [[:'''MM]] ''' - a numerical expression specifying the month. [[:'''dd]] ''' - a numerical expression specifying the day of the month . == Notes == * Use [[EncodeTime]] to return the fractional portion of a double-precision decimal DateTime value corresponding to a specified time.
==== Example ====<syntaxhighlight>EncodeDate(08,01,01) will </syntaxhighlight>Will return a value of 39448.00000000, corresponding to the specified date of January 1st, 2008</syntaxhighlight> .
[[Category:Date and Time Routines]]

Navigation menu