<?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 Local data filter with today's date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249536#M49005</link>
    <description>&lt;OL&gt;
&lt;LI&gt;Apparently your :DateOnly column is of data type character.&lt;/LI&gt;
&lt;LI&gt;The function Short Date() returns the format of "mm/dd/yyyy" and you need "yyyy/mm/dd"&lt;/LI&gt;
&lt;LI&gt;The format "y/m/d" will return that value and if you use the Format() function it will return it as the character string you desire&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Where( :DateOnly == format(today(),"y/m/d") );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Feb 2020 19:17:54 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-02-27T19:17:54Z</dc:date>
    <item>
      <title>how to Local data filter with today's date</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249527#M49003</link>
      <description>&lt;P&gt;We are trying to filter the date by today's date.&lt;/P&gt;&lt;P&gt;original line of code is&amp;nbsp;Where( :DateOnly == "2020/02/27" ),&lt;/P&gt;&lt;P&gt;I try to replace the date by&amp;nbsp;&lt;STRONG&gt;Short Date(Today()) or "Short Date(Today())", "|| Short Date(Today())||'&amp;nbsp; ; &lt;/STRONG&gt;nothing worked, anyone can help?&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;Local Data Filter(&lt;BR /&gt;Width( 178 ),&lt;BR /&gt;Add Filter(&lt;BR /&gt;columns( :DateOnly, :Equipment ),&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Where( :DateOnly == &lt;STRONG&gt;"||Short Date(Today())||"&lt;/STRONG&gt; ),&lt;/FONT&gt;&lt;BR /&gt;Display(&lt;BR /&gt;:DateOnly,&lt;BR /&gt;Size( 172, 238 ),&lt;BR /&gt;Height( 238 )&lt;BR /&gt;),&lt;BR /&gt;Display(&lt;BR /&gt;:Equipment,&lt;BR /&gt;Size( 172, 51 ),&lt;BR /&gt;Height( 51 ),&lt;BR /&gt;"List Display"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 19:02:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249527#M49003</guid>
      <dc:creator>wendong</dc:creator>
      <dc:date>2020-02-27T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to Local data filter with today's date</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249536#M49005</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Apparently your :DateOnly column is of data type character.&lt;/LI&gt;
&lt;LI&gt;The function Short Date() returns the format of "mm/dd/yyyy" and you need "yyyy/mm/dd"&lt;/LI&gt;
&lt;LI&gt;The format "y/m/d" will return that value and if you use the Format() function it will return it as the character string you desire&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Where( :DateOnly == format(today(),"y/m/d") );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 19:17:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249536#M49005</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-27T19:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to Local data filter with today's date</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249543#M49007</link>
      <description>&lt;P&gt;Thanks Jim for saving my day. ( I just need to change your line of code at the end from the semi colon to comma, then it works out)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Where( :DateOnly == format(today(),"y/m/d") ),&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 19:56:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-Local-data-filter-with-today-s-date/m-p/249543#M49007</guid>
      <dc:creator>wendong</dc:creator>
      <dc:date>2020-02-27T19:56:30Z</dc:date>
    </item>
  </channel>
</rss>

