<?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: Date formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391864#M94207</link>
    <description>&lt;P&gt;When in doubt try ANYDTDTM for datetime and ANYDTDTE for dates.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 14:40:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-08-30T14:40:51Z</dc:date>
    <item>
      <title>Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391823#M94189</link>
      <description>&lt;P&gt;03JAN2011:00:00:00.000&lt;/P&gt;&lt;P&gt;which format should I use to read this date ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391823#M94189</guid>
      <dc:creator>india2016</dc:creator>
      <dc:date>2017-08-30T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391840#M94199</link>
      <description>&lt;P&gt;Depends upon what you want. That is a datetime, not a date. If you want to capture all three you could use something like:&lt;/P&gt;
&lt;PRE&gt;data have;
  input dt datetime22.;
  format date date9.;
  format time time5.;
  date=datepart(dt);
  time=timepart(dt);
  cards;
03JAN2011:00:00:00.000
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391840#M94199</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-08-30T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391842#M94200</link>
      <description>&lt;P&gt;You need an informat to read data not a format - try datetime22. (Untested)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391842#M94200</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-30T14:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391855#M94203</link>
      <description>&lt;P&gt;If all of the values have the same "time", especially of :00:00:00.000 I would use a DATE9. informat to read the date and discard the time part.&lt;/P&gt;
&lt;P&gt;Don't forget to set a display format so humans can see the date in a useable form.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391855#M94203</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-30T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391864#M94207</link>
      <description>&lt;P&gt;When in doubt try ANYDTDTM for datetime and ANYDTDTE for dates.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391864#M94207</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-30T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391914#M94216</link>
      <description>The only note of caution I'd sound about ANYDTDTM and ANYDTDTE is that they are dependant on the correct Locale being set. I learned that the hard way a few years ago when working on a server in the U.K. where unknown to me the Locale had been set to US which led to some correct dates, some incorrect dates and some errors. It puzzled me for quite a while before I realised what was going on.....</description>
      <pubDate>Wed, 30 Aug 2017 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/391914#M94216</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-30T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/392322#M94378</link>
      <description>&lt;P&gt;Thanks, everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I used Datetime22.3 format and it successfully reads that observation.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats/m-p/392322#M94378</guid>
      <dc:creator>india2016</dc:creator>
      <dc:date>2017-08-31T18:38:30Z</dc:date>
    </item>
  </channel>
</rss>

