<?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 EG Text to Date Conversion in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99979#M8879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that that i am importing to SAS in .csv format.&amp;nbsp; The date is in character format (Thu Apr 04 17:15:32 GMT 2013) and I need SAS to read this as a normal date time format.&amp;nbsp; The date and time are intermingled and I am not sure how to separate them and convert it to the proper date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been unable to find anything that will help me convert this.&amp;nbsp; I have tried many things... but the way the date comes out is odd and i can't get it convert over to datetime no matter what i do.&amp;nbsp; Does anyone know any tricks to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Apr 2013 19:09:50 GMT</pubDate>
    <dc:creator>D_Z_</dc:creator>
    <dc:date>2013-04-06T19:09:50Z</dc:date>
    <item>
      <title>SAS EG Text to Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99979#M8879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that that i am importing to SAS in .csv format.&amp;nbsp; The date is in character format (Thu Apr 04 17:15:32 GMT 2013) and I need SAS to read this as a normal date time format.&amp;nbsp; The date and time are intermingled and I am not sure how to separate them and convert it to the proper date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been unable to find anything that will help me convert this.&amp;nbsp; I have tried many things... but the way the date comes out is odd and i can't get it convert over to datetime no matter what i do.&amp;nbsp; Does anyone know any tricks to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 19:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99979#M8879</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-04-06T19:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Text to Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99980#M8880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you just convert it yourself?&lt;/P&gt;&lt;P&gt;Say it is read in as a character string named TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;datetime = input(scan(time,3)||scan(time,2)||scan(time,-1)||':'||scan(time,4,' '),datetime.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;format datetime datetime19.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all of the records do not say GMT then you will need add some logic to adjust for time zone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 21:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99980#M8880</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-04-06T21:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Text to Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99981#M8881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help on this one.&amp;nbsp; If it were one or two entries i could most certainly converted them manually... however... i am dealing with thousands of entries per day, hence why i wanted SAS to do the converting for me.&amp;nbsp; I am not that great with these calculations, though i am getting better everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 22:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Text-to-Date-Conversion/m-p/99981#M8881</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-04-06T22:24:13Z</dc:date>
    </item>
  </channel>
</rss>

