×

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

DateToJulian

10 bytes added, 14:02, 15 February 2023
no edit summary
Returns a numerical value corresponding to the Julian Date equivalent of the specified date.<br>The 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 date is specified in the == Usage ==<syntaxhighlight>DateToJulian(YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month. )</syntaxhighlight>
Julian Date indicates the number of days that have elapsed since January 1st, 1900. ==== Usage ====<syntaxhighlight>DateToJulian(YYYMMdd)</syntaxhighlight> Where:
Where: [['''YYYMMdd]] ''' - a numerical expression, specifying the date in YYYMMdd format ==== Example ====<syntaxhighlight>DateToJulian (1080101)</syntaxhighlight> will return a value of 39448, corresponding to the specified date of January 1st, 2008.
<syntaxhighlight>DateToJulian (990402)</syntaxhighlight> will return a value of 36252, corresponding == Notes ==* Use [[JulianToDate]] to convert the specified Julian date of April 2nd, 1999 back to the regular [[Date]] format.
== Examples ==
<syntaxhighlight>DateToJulian(1080101)</syntaxhighlight>
Will return a value of 39448, corresponding to the specified date of January 1st, 2008.
<syntaxhighlight>DateToJulian(990402)</syntaxhighlight>
Will return a value of 36252, corresponding to the specified date of April 2nd, 1999.
[[Category:Date and Time Routines]]