Difference between revisions of "DateToJulian"

From MultiCharts
Jump to navigation Jump to search
 
(3 intermediate revisions by 3 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.  
  
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>
  
Julian Date indicates the number of days that have elapsed since January 1st, 1900.
+
Where:  
 
http://www.buyxanaxonlinepill.com/ buy generic xanax online - buy xanax online wthout prescription
 
  
==== Example ====
+
:'''YYYMMdd''' - a numerical expression, specifying the date in YYYMMdd format.
<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 to the specified date  
+
== Notes ==
of April 2nd, 1999</syntaxhighlight>
+
* 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]]

Latest revision as of 14:02, 15 February 2023

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.

Usage

DateToJulian(YYYMMdd)

Where:

YYYMMdd - a numerical expression, specifying the date in YYYMMdd format.

Notes

Examples

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 to the specified date of April 2nd, 1999.