Peter Meyer. "Julian Day Numbers." From http://hermetic.nofadz.com/cal_stud/jdn.htm
Eric W. Weisstein. "Julian Date." From MathWorld--A Wolfram Web Resource.
"Julian Day" From Wikipedia, http://en.wikipedia.org/wiki/Julian_day.
Eric W. Weisstein. "Julian Calendar." From MathWorld--A Wolfram Web Resource.
Ordinal Date conversions
"Ordinal Dates" in the form yyddd or yyyydd
Convert a Standard Date to the date format "yyddd".
(Due to Y2K, this isn't a very safe format. I prefer "yyyyddd".)
When using the format "yyyyddd", you can replace "yy" with "yyyy" in the above formula, or because there are no leading zeros, you don't have have to treat the Ordinal date as text, leading to the following formula:
Note that standard Excel dates (xldate) are only defined between Jan 1, 1900 and December 31, 9999, so formulas that use Excel's built-in date functions will likely only work in this range.
Convert a date in the form "yyddd" to a Standard Date.
This can be done using the following julian date conversion formula:
=DATE(century+INT(datetext/1000),1,MOD(datetext,1000))where century is 1900, 2000, 2100, etc. and datetext is the date in the format "yyddd". A better way in my opinion is converting from the format "yyyyddd" which avoids having to use the century variable, and datetext can be numeric:
Julian Date (Julian Day Number) Conversions
Julian Date calculated as # of Days Since Noon (UT), Jan 1, 4713 BC
Note that UT (Universal Time) is typically known as GMT (Greenwich Mean Time). Also, Excel dates correspond to the Gregorian Calendar (established in 1582).
The Excel help documentation suggests using the following conversion to calculate a Julian Date:
=DATE(Y,M,D)+2415018.5where Y is the year, M is the month, and D is the day, and DATE(Y,M,D) could be replaced with just a standard Excel date. The problem is that this only works for years after 1901.
Using the formula from scienceworld.wolfram.com, the Julian Date for any date in the Gregorian calendar (at 0:00 GMT) can be calculated using:
=367*Y - INT(7*(Y + INT((M+9)/12))/4)Keep in mind that the Gregorian calendar starts on 15-Oct-1582.
+ INT(275*M/9) + D + 1721028.5
To include the TIME in the Julian Date conversion, you can use a couple of different formulas to add in the day-fraction for a time specified as HH:MM:SS (24-hour Greenwich Mean Time):
=xltimewhere xltime refers to a cell containing a time value. The second formula works because Excel stores time values as a fraction of a day so that (noon=0.5). Note that in order to display the day-fraction, you need to change the format of the cell to general or number.