×

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

143 bytes added, 13:36, 15 February 2023
no edit summary
Returns a numerical value indicating the day of the month for the specified DateTime value.
The integer portion of the DateTime value specifies the number of days since January 1stDecember 30th, 19001899, 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]]