DateToJulian: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
Returns a numerical value corresponding to the Julian Date equivalent of the specified date. | 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. | |||
== Usage == | |||
<syntaxhighlight>DateToJulian(YYYMMdd)</syntaxhighlight> | |||
Where: | |||
:'''YYYMMdd''' - a numerical expression, specifying the date in YYYMMdd format. | |||
== Notes == | |||
* Use [[JulianToDate]] to convert the Julian date 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]] | [[Category:Date and Time Routines]] |