<?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: Convert Character to Date in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742994#M38847</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59670i54D6050D97F0F65B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can it be done in Computed Columns in Query Builder?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 17:55:57 GMT</pubDate>
    <dc:creator>WorkUser</dc:creator>
    <dc:date>2021-05-21T17:55:57Z</dc:date>
    <item>
      <title>Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742951#M38843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m pretty new to SAS EG 8.3 and I’m trying to convert character date (ex. 20210111) to show as Year/Month (ex. 2021/01) but cant get it right.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742951#M38843</guid>
      <dc:creator>WorkUser</dc:creator>
      <dc:date>2021-05-21T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742955#M38844</link>
      <description />
      <pubDate>Fri, 21 May 2021 16:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742955#M38844</guid>
      <dc:creator>WorkUser</dc:creator>
      <dc:date>2021-05-21T16:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742959#M38845</link>
      <description>&lt;P&gt;sorry for the multiple posts. tried to include a screen shot but it said it doesn't support file type and it wont let me delete the post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742959#M38845</guid>
      <dc:creator>WorkUser</dc:creator>
      <dc:date>2021-05-21T16:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742960#M38846</link>
      <description>&lt;P&gt;You will need to create a new variable in a data step such as:&lt;/P&gt;
&lt;PRE&gt;data want;
    set have;
    newdate = input(characterdate,yymmdd10.);
   format newdate yymms7. ;
run;&lt;/PRE&gt;
&lt;P&gt;Once you have a date value there are dozens of SAS supplied formats plus you can create your own format with Proc Format if you can't find one the matches your need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be aware the date value still has a day of the month component if you try to do any comparisons. The groups created by the format will work for most analysis, reporting and graphing procedures without modifying the individual values of the variable.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742960#M38846</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-21T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742994#M38847</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59670i54D6050D97F0F65B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can it be done in Computed Columns in Query Builder?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 17:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/742994#M38847</guid>
      <dc:creator>WorkUser</dc:creator>
      <dc:date>2021-05-21T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/743004#M38848</link>
      <description>&lt;P&gt;Yes, this can be done in the query builder. You can create a computed column with the advanced expression editor, but you would use the INPUT function and the YYMMDD8. informat to convert the character string to a SAS date, and then apply the YYMMS7. format to display the SAS date correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jebjur_0-1621621640514.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59673iAFF420B5BA5A58D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jebjur_0-1621621640514.png" alt="jebjur_0-1621621640514.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 18:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/743004#M38848</guid>
      <dc:creator>jebjur</dc:creator>
      <dc:date>2021-05-21T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Character to Date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/743005#M38849</link>
      <description>Thank you so much!</description>
      <pubDate>Fri, 21 May 2021 18:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-Character-to-Date/m-p/743005#M38849</guid>
      <dc:creator>WorkUser</dc:creator>
      <dc:date>2021-05-21T18:32:19Z</dc:date>
    </item>
  </channel>
</rss>

