<?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: How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540125#M7185</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data want;
set have;
want=cats(substr(char_date,1,6),substr(char_date,9));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Mar 2019 17:46:45 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-03-04T17:46:45Z</dc:date>
    <item>
      <title>How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540121#M7182</link>
      <description>&lt;P&gt;I have a&amp;nbsp;char date that is formatted&amp;nbsp;mm/dd/yyyy, I need to keep the date in a char format and change it to be a&amp;nbsp;mm/dd/yy. Any assistance is appreciated. &amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540121#M7182</guid>
      <dc:creator>ScotchCat</dc:creator>
      <dc:date>2019-03-04T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540122#M7183</link>
      <description>&lt;P&gt;You can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   chardate='03/04/2019';
   newchardate=put(input(chardate, mmddyy10.), mmddyy8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540122#M7183</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-04T17:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540124#M7184</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
do date=today()-7 to today();
char_date=put(date,mmddyy10.);
output;
end;
drop date;
run;

data want;
set have;
substr(char_date,7,2)=' ';
char_date=compress(char_date);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540124#M7184</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-04T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540125#M7185</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data want;
set have;
want=cats(substr(char_date,1,6),substr(char_date,9));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540125#M7185</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-04T17:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a char date from mm/dd/yyyy to a char date of mm/dd/yy</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540126#M7186</link>
      <description>&lt;P&gt;Perfect! Thanks so much!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-format-a-char-date-from-mm-dd-yyyy-to-a-char-date-of-mm/m-p/540126#M7186</guid>
      <dc:creator>ScotchCat</dc:creator>
      <dc:date>2019-03-04T17:56:07Z</dc:date>
    </item>
  </channel>
</rss>

