<?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: How to get date yesterday? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662427#M85126</link>
    <description>&lt;P&gt;You will have to deduct the seconds in one day from Today(), using In Days(1) is one option (you could also use 24*60*60)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Today() - In Days(1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="body"&gt;&lt;EM&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Datetime&lt;/SPAN&gt;&amp;nbsp;values are handled internally as numbers of seconds since midnight, January 1, 1904 (&lt;/EM&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/date-and-time-functions.shtml" target="_blank" rel="noopener"&gt;JSL Syntax Reference &amp;gt; JSL Functions, Operators, and Messages &amp;gt; Date and Time Functions&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 08:21:05 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-07-26T08:21:05Z</dc:date>
    <item>
      <title>How to get date yesterday?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662391#M85123</link>
      <description>&lt;P&gt;I would want to get the date yesterday, I am using the today () function&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dateNow = Format (Today(), "m/d/y");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I don't know how to derive from dateNow the date yesterday. Tried using&amp;nbsp;d = (dateNow - 1);&lt;/P&gt;&lt;P&gt;but is not working.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:40:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662391#M85123</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-07-26T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date yesterday?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662418#M85125</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dans ta table de données, tu peux créer une nouvelle colonne par exemple «&amp;nbsp;date hier&amp;nbsp;».&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();&lt;BR /&gt;&lt;BR /&gt;// Nouvelle colonne&amp;nbsp;: date hier
dt &amp;lt;&amp;lt; New Column( "date hier",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;et ensuite tu peux écrire cette formule avec la date que tu souhaites obtenir.&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Modifier la formule de colonne&amp;nbsp;: date hier
dt:date hier &amp;lt;&amp;lt; Set Formula( Date MDY( 7, 25, 2023 ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;en sortie tu obtiens ceci :&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hcarr01_0-1690358964494.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55277i905A2D55A3376B18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hcarr01_0-1690358964494.png" alt="hcarr01_0-1690358964494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:11:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662418#M85125</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2023-07-26T08:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date yesterday?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662427#M85126</link>
      <description>&lt;P&gt;You will have to deduct the seconds in one day from Today(), using In Days(1) is one option (you could also use 24*60*60)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Today() - In Days(1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="body"&gt;&lt;EM&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Datetime&lt;/SPAN&gt;&amp;nbsp;values are handled internally as numbers of seconds since midnight, January 1, 1904 (&lt;/EM&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/date-and-time-functions.shtml" target="_blank" rel="noopener"&gt;JSL Syntax Reference &amp;gt; JSL Functions, Operators, and Messages &amp;gt; Date and Time Functions&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:21:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-date-yesterday/m-p/662427#M85126</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-26T08:21:05Z</dc:date>
    </item>
  </channel>
</rss>

