<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Formula to Convert Calendar Date to Julian Date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872306#M103628</link>
    <description>&lt;P&gt;Google search: &amp;nbsp; 'calendar date to julian date formula'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV id="fc_DZ0baLi5CPDU5NoPsunRmAg_4" class="yf" data-async-fc="EqEBCmJBQS1LVGhkZjNaTmlvMXNUOWxhMEV6QzFyd1ZmbnF4ODdpNXdGMlRJby03WVBUZ0NnbDh1S25OdzVZNmV0UlZfWTFNSXdCOWdQaS1ONXZWVDZiazIwcFNjaTlPX2kwRGQ3URIXRFowYmFMaTVDUERVNU5vUHN1blJtQWcaIkFDRFhMNG15Mm84MjN6WG1oN3JfLXQzdDFOdjNXRlhBclE" data-async-fcv="3" data-async-ons="7159"&gt;
&lt;DIV&gt;
&lt;DIV data-di="0"&gt;
&lt;DIV&gt;&lt;SPAN&gt;The formula to convert a Gregorian date to a Julian date is: JD = 367K - (7(K + (M + 9)/12))/4 + (275M)/9 + I + 1721013.5 + UT/24. &lt;/SPAN&gt;&lt;SPAN&gt;Where K is the year, M is the month, I is the day, and UT is the universal time in hours. &lt;/SPAN&gt;&lt;SPAN&gt;The last two terms in the formula add up to zero for dates after 1900 February 28. [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Explanation of the variables: [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;K: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the year in the Gregorian calendar. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;M: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the month. &lt;/SPAN&gt;&lt;SPAN&gt;January and February are treated as the 13th and 14th months of the previous year, respectively. &lt;/SPAN&gt;&lt;SPAN&gt;For example, if the date is January 15, 2025, then M = 13 and K = 2024. If the date is February 20, 2025, then M = 14 and K = 2024. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;I: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the day of the month. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;UT: &lt;/SPAN&gt;&lt;SPAN&gt;Universal Time in hours. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;JD: &lt;/SPAN&gt;&lt;SPAN&gt;The resulting Julian Date. [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;&lt;SPAN&gt;Steps for calculation: [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Determine K: &lt;/SPAN&gt;&lt;SPAN&gt;If the month is January or February, subtract 1 from the year. &lt;/SPAN&gt;&lt;SPAN&gt;Otherwise, use the given year. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Determine M: &lt;/SPAN&gt;&lt;SPAN&gt;If the month is January or February, use 13 or 14 respectively. &lt;/SPAN&gt;&lt;SPAN&gt;Otherwise, use the actual month number. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Substitute the values of K, M, I, and UT into the formula.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Calculate the Julian Date (JD). [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;I&gt;Generative AI is experimental.&lt;/I&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV data-sf=""&gt;[1]&amp;nbsp;&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;https://aa.usno.navy.mil/faq/JD_formula&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link appears to be where the majority of the AI generation originated from.&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 17:52:06 GMT</pubDate>
    <dc:creator>Paul_Nelson</dc:creator>
    <dc:date>2025-05-07T17:52:06Z</dc:date>
    <item>
      <title>Formula to Convert Calendar Date to Julian Date</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872296#M103627</link>
      <description>&lt;P&gt;Hi All, I need a formula to convert Calendar Date (column is in Character/Nominal Type, dd/mm/YYYY format) to Julian Date (numeric). For example, in Row#1 from 07-Mar-2024 (07/03/2024) to&amp;nbsp;&lt;SPAN&gt;24067:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex19_1-1746639064468.png" style="width: 435px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75586i61F281B90BE797CE/image-dimensions/435x259?v=v2" width="435" height="259" role="button" title="Alex19_1-1746639064468.png" alt="Alex19_1-1746639064468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Alex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 17:32:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872296#M103627</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2025-05-07T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to Convert Calendar Date to Julian Date</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872306#M103628</link>
      <description>&lt;P&gt;Google search: &amp;nbsp; 'calendar date to julian date formula'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV id="fc_DZ0baLi5CPDU5NoPsunRmAg_4" class="yf" data-async-fc="EqEBCmJBQS1LVGhkZjNaTmlvMXNUOWxhMEV6QzFyd1ZmbnF4ODdpNXdGMlRJby03WVBUZ0NnbDh1S25OdzVZNmV0UlZfWTFNSXdCOWdQaS1ONXZWVDZiazIwcFNjaTlPX2kwRGQ3URIXRFowYmFMaTVDUERVNU5vUHN1blJtQWcaIkFDRFhMNG15Mm84MjN6WG1oN3JfLXQzdDFOdjNXRlhBclE" data-async-fcv="3" data-async-ons="7159"&gt;
&lt;DIV&gt;
&lt;DIV data-di="0"&gt;
&lt;DIV&gt;&lt;SPAN&gt;The formula to convert a Gregorian date to a Julian date is: JD = 367K - (7(K + (M + 9)/12))/4 + (275M)/9 + I + 1721013.5 + UT/24. &lt;/SPAN&gt;&lt;SPAN&gt;Where K is the year, M is the month, I is the day, and UT is the universal time in hours. &lt;/SPAN&gt;&lt;SPAN&gt;The last two terms in the formula add up to zero for dates after 1900 February 28. [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Explanation of the variables: [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;K: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the year in the Gregorian calendar. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;M: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the month. &lt;/SPAN&gt;&lt;SPAN&gt;January and February are treated as the 13th and 14th months of the previous year, respectively. &lt;/SPAN&gt;&lt;SPAN&gt;For example, if the date is January 15, 2025, then M = 13 and K = 2024. If the date is February 20, 2025, then M = 14 and K = 2024. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;I: &lt;/SPAN&gt;&lt;SPAN&gt;Represents the day of the month. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;UT: &lt;/SPAN&gt;&lt;SPAN&gt;Universal Time in hours. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;JD: &lt;/SPAN&gt;&lt;SPAN&gt;The resulting Julian Date. [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;&lt;SPAN&gt;Steps for calculation: [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Determine K: &lt;/SPAN&gt;&lt;SPAN&gt;If the month is January or February, subtract 1 from the year. &lt;/SPAN&gt;&lt;SPAN&gt;Otherwise, use the given year. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Determine M: &lt;/SPAN&gt;&lt;SPAN&gt;If the month is January or February, use 13 or 14 respectively. &lt;/SPAN&gt;&lt;SPAN&gt;Otherwise, use the actual month number. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Substitute the values of K, M, I, and UT into the formula.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Calculate the Julian Date (JD). [&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;1&lt;/A&gt;] &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;I&gt;Generative AI is experimental.&lt;/I&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV data-sf=""&gt;[1]&amp;nbsp;&lt;A href="https://aa.usno.navy.mil/faq/JD_formula" data-ic="" target="_blank"&gt;https://aa.usno.navy.mil/faq/JD_formula&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link appears to be where the majority of the AI generation originated from.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 17:52:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872306#M103628</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2025-05-07T17:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to Convert Calendar Date to Julian Date</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872310#M103631</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local(
	{date = InFormat(:Calendar Date, "Format Pattern", "&amp;lt;DD&amp;gt;/&amp;lt;MM&amp;gt;/&amp;lt;YYYY&amp;gt;")},
	Num(Right(:Calendar Date, 2) || Right("00000" || Char(Day Of Year(date)), 4))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 May 2025 18:29:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-Convert-Calendar-Date-to-Julian-Date/m-p/872310#M103631</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-07T18:29:43Z</dc:date>
    </item>
  </channel>
</rss>

