2
1
I am trying to get a Julian Date from a regular date (mm/dd/yyyy) in Excel. There seems to be two kinds of Julian date calculation.
- One is described Here..
- The other is somehow related to Gregorian date and is described here.
If I use the following formula in Excel. I get the result as shown below.
=TEXT(A1,"yy")&TEXT((A1-DATEVALUE("1/1/"&TEXT(A1,"yy"))+1),"000")
For 1/20/2017, I get this value 17020.
However, if I use the second resource, for the same date, I get the following value.
I am looking for this second value (2457774). I did much research online to find Excel formula for the second method. But I cannot find any.
Can someone please help me to get this formula in Excel? really appreciate your help.
If you are looking for how that value is computed you can check the JavaScript source: http://stevegs.com/utils/jd_calc/jd_calc.js
– Titan – 2019-11-21T17:46:43.917Here is a major hint: The Julian Calendar is 17 days behind the Gregorian. What you are actually looking for is considered a Modified Julian Day You can convert from MJD by adding a 2400000.5 to the number of days since the start of the Julian Calendar. The reason you covert from MJD is due to the fact Julian starts in 4058 BC which excel doesn’t handle and MJD starts in 1858. In both cases you have to subtract 17 days. You can convert from Gregorian and Julian knowing these facts easily enough. – Ramhound – 2019-11-21T18:10:43.587
@ramhound It's more complicated than that and it's never been 17 days." The Julian calendar day Thursday, 4 October 1582 was followed by the first day of the Gregorian calendar, Friday, 15 October 1582" (10 days). In 1752 when the UK adopted the GC the difference was 11 days.
– DavidPostill – 2019-11-21T18:33:43.8271
@DavidPostill - David; I work exclusively with Julian and Modified Julian Dates. I have C# Code that will calculate the current Julian day and MJD from the current Gregorian day. Today in Julian Calendar is November 8th.. I don’t know what to tell you, I know for a fact, the current offset is 13 days how I know this. I thought it was 17 days, my notes in my private GitHub repository, says that but NASA says otherwise.
– Ramhound – 2019-11-21T18:45:18.8901Correct. The current offset is 13 days. The point I was trying to make is that the GC started on vastly different days depending on what country you are in. You have to make an assumption (given a Gregorian day in history) about the country to get the correct offset. – DavidPostill – 2019-11-21T18:53:11.770