×

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

DateToJulian

198 bytes added, 12:41, 19 February 2012
no edit summary
Returns a numerical value corresponding to the Julian Date equivalent of the specified date.
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.
Julian Date indicates the number of days that have elapsed since January 1st, 1900, making it a useful function for performing calculations with dates.
==== Usage ====
<syntaxhighlight>DateToJulian(YYYMMdd)</syntaxhighlight>
Where: [[ :'''YYYMMdd]] ''' - a numerical expression, specifying the date in YYYMMdd format ==== Example ====<syntaxhighlight>DateToJulian (1080101) will return a value of 39448, corresponding to the specified date of January 1st, 2008.
DateToJulian (990402) will return a value of 36252, corresponding == Notes ==* Use [[JulianToDate]] to convert the specified Julian date of April 2nd, 1999</syntaxhighlight>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]]

Navigation menu