<?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 change date format from $10. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930464#M83495</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to change date format from&amp;nbsp;$10. to yymmn6.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 18:53:16 GMT</pubDate>
    <dc:creator>sasphd</dc:creator>
    <dc:date>2024-05-31T18:53:16Z</dc:date>
    <item>
      <title>change date format from $10.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930464#M83495</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to change date format from&amp;nbsp;$10. to yymmn6.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 18:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930464#M83495</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2024-05-31T18:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: change date format from $10.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930468#M83496</link>
      <description>&lt;P&gt;You will need to show some example values of your existing variable. The $10 attached to your variable means that it is a character value and so a date formatcannot be applied. You have to create a new variable this is numeric with the appropriate date value. To help do that you need to provide examples of the current variable and we can show how to make a date value.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 19:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930468#M83496</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-31T19:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: change date format from $10.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930469#M83497</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;my date variable is like "2023-09-18" but its format in SAS is&amp;nbsp;$10.&lt;/P&gt;
&lt;P&gt;I want to transform it to date format&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 19:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930469#M83497</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2024-05-31T19:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: change date format from $10.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930474#M83498</link>
      <description>&lt;P&gt;Make a new data set with an added variable. Once a variable has a type you cannot change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   newdatevar = input(current_datevar,yymmdd10.);
   format newdatevar yymmn6.;
run;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4327"&gt;@sasphd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;my date variable is like "2023-09-18" but its format in SAS is&amp;nbsp;$10.&lt;/P&gt;
&lt;P&gt;I want to transform it to date format&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 19:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930474#M83498</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-31T19:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: change date format from $10.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930491#M83499</link>
      <description>&lt;P&gt;Suppose the name of your variable is datevar.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have (rename=(datevar=_datevar));
datevar = input(_datevar,yymmdd10.);
format datevar yymmn6.;
drop _datevar;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2024 22:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-date-format-from-10/m-p/930491#M83499</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-05-31T22:31:55Z</dc:date>
    </item>
  </channel>
</rss>

