<?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: datetime20. format filtering in where clause in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/datetime20-format-filtering-in-where-clause/m-p/272795#M54296</link>
    <description>&lt;P&gt;You are comparing a Datetime to Date values. Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; Datepart (MINOFTRANSFER_EFF_DT) between &lt;SPAN class="token datetime number"&gt;'01APR2016'd&lt;/SPAN&gt; and &lt;SPAN class="token datetime number"&gt;'30JUN2016'd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token datetime number"&gt;to compare the date of the datetime &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 17:17:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-05-24T17:17:47Z</dc:date>
    <item>
      <title>datetime20. format filtering in where clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime20-format-filtering-in-where-clause/m-p/272792#M54295</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select distinct MINOFTRANSFER_EFF_DT
from HSD.master_table
where MINOFTRANSFER_EFF_DT between '01APR2016'd and '30JUN2016'd
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to filter data based on the date and it returns no values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MINOFTRANSFER_EFF_DT is in datetime20. format.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime20-format-filtering-in-where-clause/m-p/272792#M54295</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-05-24T17:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: datetime20. format filtering in where clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime20-format-filtering-in-where-clause/m-p/272795#M54296</link>
      <description>&lt;P&gt;You are comparing a Datetime to Date values. Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; Datepart (MINOFTRANSFER_EFF_DT) between &lt;SPAN class="token datetime number"&gt;'01APR2016'd&lt;/SPAN&gt; and &lt;SPAN class="token datetime number"&gt;'30JUN2016'd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token datetime number"&gt;to compare the date of the datetime &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime20-format-filtering-in-where-clause/m-p/272795#M54296</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-24T17:17:47Z</dc:date>
    </item>
  </channel>
</rss>

