<?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: change DATETIME var to DATE in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/933#M258</link>
    <description>Jean-Sebastien,&lt;BR /&gt;
&lt;BR /&gt;
You can apply one of the date formats in you data or sort step:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  d='02jun2006:00:01:00'dt;&lt;BR /&gt;
  put d= datetime. / d= datetime9. / d= dtdate9.;&lt;BR /&gt;
run;</description>
    <pubDate>Fri, 30 Jun 2006 13:18:00 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-06-30T13:18:00Z</dc:date>
    <item>
      <title>change DATETIME var to DATE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/932#M257</link>
      <description>Hi, &lt;BR /&gt;
   i making web log analysis and i want to sort page views per date. As we know, the date in weblog files has this format: 02JUN2006:00:00:00. I tried to create a new variable with only the day or date (eg. 02jun or 02jun2006) by truncating or new format, but it didnt work!!&lt;BR /&gt;
&lt;BR /&gt;
thanks for your help&lt;BR /&gt;
&lt;BR /&gt;
Jean-Sebastien</description>
      <pubDate>Thu, 29 Jun 2006 21:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/932#M257</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-29T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: change DATETIME var to DATE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/933#M258</link>
      <description>Jean-Sebastien,&lt;BR /&gt;
&lt;BR /&gt;
You can apply one of the date formats in you data or sort step:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  d='02jun2006:00:01:00'dt;&lt;BR /&gt;
  put d= datetime. / d= datetime9. / d= dtdate9.;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 30 Jun 2006 13:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/933#M258</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-30T13:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: change DATETIME var to DATE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/934#M259</link>
      <description>THANKS nori, it worked!</description>
      <pubDate>Fri, 30 Jun 2006 16:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/934#M259</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-30T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: change DATETIME var to DATE</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/935#M260</link>
      <description>Another option is the datepart function which will return a date sequence.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
&lt;BR /&gt;
datetime_var = '07jun2006:01:05:06'dt;&lt;BR /&gt;
&lt;BR /&gt;
date_var = datepart(datetime_var);&lt;BR /&gt;
&lt;BR /&gt;
format datetime_var datetime20. date_var date9.;&lt;BR /&gt;
&lt;BR /&gt;
put _all_;&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 30 Jun 2006 17:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/change-DATETIME-var-to-DATE/m-p/935#M260</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-06-30T17:09:37Z</dc:date>
    </item>
  </channel>
</rss>

