<?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 Converting text to date format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Converting-text-to-date-format/m-p/163247#M42364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a text variable called transaction date&amp;nbsp; which has values like 01-APR-14. I want to convert this variable to a date variable in the format ddmmyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Consolas;"&gt;date=input(substr(strip(transaction_date),1,9),MMDDYY10.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This doesn't seem to work. Can anyone suggest how to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 May 2014 18:39:53 GMT</pubDate>
    <dc:creator>ranjita</dc:creator>
    <dc:date>2014-05-17T18:39:53Z</dc:date>
    <item>
      <title>Converting text to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-text-to-date-format/m-p/163247#M42364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a text variable called transaction date&amp;nbsp; which has values like 01-APR-14. I want to convert this variable to a date variable in the format ddmmyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Consolas;"&gt;date=input(substr(strip(transaction_date),1,9),MMDDYY10.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This doesn't seem to work. Can anyone suggest how to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 18:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-text-to-date-format/m-p/163247#M42364</guid>
      <dc:creator>ranjita</dc:creator>
      <dc:date>2014-05-17T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting text to date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-text-to-date-format/m-p/163248#M42365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming transaction_date is a character the following is what you want:&lt;/P&gt;&lt;P&gt;date=input(strip(transaction_date), date9.);&lt;/P&gt;&lt;P&gt;format date mmddyy10.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 18:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-text-to-date-format/m-p/163248#M42365</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-17T18:49:52Z</dc:date>
    </item>
  </channel>
</rss>

