<?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: only need date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743830#M232964</link>
    <description>&lt;P&gt;Please state a clear question that you want to have an answer to.&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 12:06:19 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-05-26T12:06:19Z</dc:date>
    <item>
      <title>only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743826#M232962</link>
      <description>&lt;P&gt;&lt;SPAN&gt;data have; input d&amp;nbsp; date14.; datalines; 20may2021 5:15 ; run; data want; input d $ date9.; datalines; 20may2021 ; run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743826#M232962</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-05-26T11:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743828#M232963</link>
      <description>&lt;P&gt;data have; input d date14.; datalines; 20may2021 5:15 ; run; data want; input d $ date9.; datalines; 20may2021 ; run;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743828#M232963</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-05-26T11:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743830#M232964</link>
      <description>&lt;P&gt;Please state a clear question that you want to have an answer to.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743830#M232964</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-26T12:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743877#M232985</link>
      <description>&lt;P&gt;First, note that dates should be numeric, not character.&amp;nbsp; So this DATA step would need to change:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; 
input d $ date9.; 
datalines; 
20may2021
 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Get rid of the dollar sign and apply a format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; 
input d date9.;
format d date9.; 
datalines; 
20may2021
 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Second, note that you don't have to read in everything on the line.&amp;nbsp; You can pick and choose.&amp;nbsp; So this DATA step still works when the data contains the time and you only want the date:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; 
input d date9.;
format d date9.; 
datalines; 
20may2021 05:15
 ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 May 2021 13:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743877#M232985</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-05-26T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743886#M232990</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378510"&gt;@aanan1417&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have (drop=t);
 informat d date9. t time5.;
 format d date9.;
	input d t ;
	datalines;
20may2021 5:15 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output will be as follows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="may26.PNG" style="width: 139px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59764iE4BB6DBEEDAD430C/image-size/large?v=v2&amp;amp;px=999" role="button" title="may26.PNG" alt="may26.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/743886#M232990</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-26T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: only need date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/744094#M233060</link>
      <description>both date are under same variable . and i need number of days</description>
      <pubDate>Thu, 27 May 2021 06:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/only-need-date/m-p/744094#M233060</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2021-05-27T06:54:23Z</dc:date>
    </item>
  </channel>
</rss>

