<?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: conver char date to format date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469782#M120211</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
date='10JUN2018:10:08:40.216';
new_date=datepart(input(date, datetime20.));
format new_date mmddyyd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying this for '-'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mmddyyd10&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 22:09:58 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-06-12T22:09:58Z</dc:date>
    <item>
      <title>conver char date to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469777#M120208</link>
      <description>&lt;P&gt;my table date as date in format 10JUN2018:10:08:40.216 expecting 06-10-2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 22:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469777#M120208</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-06-12T22:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: conver char date to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469778#M120209</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
date='10JUN2018:10:08:40.216';
new_date=datepart(input(date, datetime20.));
format new_date mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 22:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469778#M120209</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-12T22:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: conver char date to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469782#M120211</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
date='10JUN2018:10:08:40.216';
new_date=datepart(input(date, datetime20.));
format new_date mmddyyd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying this for '-'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mmddyyd10&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 22:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469782#M120211</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-12T22:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: conver char date to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469785#M120212</link>
      <description>&lt;P&gt;Or if the existing variable is consistent you can read with the DATE9. informat:&lt;/P&gt;
&lt;PRE&gt;data example;
   date='10JUN2018:10:08:40.216';
   newdate= input(date,date9.);
   format newdate mmddyyd10.;
run;&lt;/PRE&gt;
&lt;P&gt;The informat will only read the first 9 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 22:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conver-char-date-to-format-date/m-p/469785#M120212</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-12T22:27:06Z</dc:date>
    </item>
  </channel>
</rss>

