×

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

DayFromDateTime

142 bytes added, 12:34, 19 February 2012
no edit summary
The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight.
==== Usage ====
<syntaxhighlight>DayFromDateTime(DateTime)</syntaxhighlight>
Where: [[ :'''DateTime]] ''' - a double-precision decimal DateTime value .
==== Example ==Examples ==<syntaxhighlight>DayFromDateTime(39449.25000000) will </syntaxhighlight>Will return a value of 2, indicating the 2nd day of the month of January, 2008</syntaxhighlight>.
<syntaxhighlight>DayFromDateTime(ComputerDateTime)</syntaxhighlight>
Will return 19, indicating that today is the 19th day of the current month.
[[Category:Date and Time Routines]]