<?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: changing character to date format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270922#M58253</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;PRE&gt;data have;
infile datalines;
input a $7.;
a=compress(a,'-');
b=input(a,yymmn6.);
format b monyy7.;
datalines;
2003-01
2006-11
2016-02
;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 May 2016 10:19:15 GMT</pubDate>
    <dc:creator>Loko</dc:creator>
    <dc:date>2016-05-17T10:19:15Z</dc:date>
    <item>
      <title>changing character to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270917#M58251</link>
      <description>&lt;P&gt;I have date in character format and i want to convert it into date format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(In character)&lt;/P&gt;&lt;P&gt;2003-01&lt;/P&gt;&lt;P&gt;2006-11&lt;/P&gt;&lt;P&gt;2016-02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is year and then month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to convert in date format like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(In Date format)&lt;/P&gt;&lt;P&gt;Jan2003&lt;/P&gt;&lt;P&gt;Nov-2006&lt;/P&gt;&lt;P&gt;Feb2016&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 10:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270917#M58251</guid>
      <dc:creator>ashishj816</dc:creator>
      <dc:date>2016-05-17T10:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: changing character to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270921#M58252</link>
      <description>&lt;P&gt;You can't directly. &amp;nbsp;SAS only treats full and valid dates as date values. &amp;nbsp;So what you need to do is to padd out what you have with day, then apply a format which only displays MM-YYYY - even though behind the scenes the date is complete:&lt;/P&gt;
&lt;PRE&gt;data want;
  dt="2003-01";
  actual=input(cats(dt,"-01"),yymmdd10.);
  format actual mmyy8.;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 10:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270921#M58252</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-17T10:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: changing character to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270922#M58253</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;PRE&gt;data have;
infile datalines;
input a $7.;
a=compress(a,'-');
b=input(a,yymmn6.);
format b monyy7.;
datalines;
2003-01
2006-11
2016-02
;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 10:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/270922#M58253</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-05-17T10:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing character to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/271157#M58300</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  dt="2003-01";
  actual=input(dt,anydtdte.);
  format actual monyy7.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2016 02:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/271157#M58300</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-18T02:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: changing character to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/271175#M58303</link>
      <description>&lt;P&gt;This is also working for me thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 05:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/changing-character-to-date-format/m-p/271175#M58303</guid>
      <dc:creator>ashishj816</dc:creator>
      <dc:date>2016-05-18T05:18:49Z</dc:date>
    </item>
  </channel>
</rss>

