<?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 Sas date function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-date-function/m-p/615831#M180170</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable in SAS which is character date 01JAN20:00:00:06 and format and informat are $123 and I wanted datepart of the date and I wanted it as 01JAN2020 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help ?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2020 23:33:58 GMT</pubDate>
    <dc:creator>chennupriya</dc:creator>
    <dc:date>2020-01-07T23:33:58Z</dc:date>
    <item>
      <title>Sas date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-date-function/m-p/615831#M180170</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable in SAS which is character date 01JAN20:00:00:06 and format and informat are $123 and I wanted datepart of the date and I wanted it as 01JAN2020 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 23:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-date-function/m-p/615831#M180170</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2020-01-07T23:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sas date function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-date-function/m-p/615835#M180173</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options YEARCUTOFF=1926;

data test;
char_date='01JAN20:00:00:06';
sas_date=input(char_date,date7.);
format sas_date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Obs char_date sas_date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1 01JAN20:00:00:06 01JAN2020&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 00:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-date-function/m-p/615835#M180173</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-08T00:27:40Z</dc:date>
    </item>
  </channel>
</rss>

