<?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 Dates in Character Format in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329023#M21869</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got some dates that I need to do use in filters and prompts. &amp;nbsp;They are month end dates stored as a string and they're in the format 0911 = 30 September 2011. &amp;nbsp;I'm struggling to convert the numbers to dates in a way that doesn't end up as 911 days after 1 Jan 1960.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Enterprise Guide 5.1 and would prefer a solution that I can use in a computed column. &amp;nbsp;I'd also like to know how to convert this into both Sep 2011 or 30 Sep 2011, I'm not sure which will be most useful at this stage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 10:10:52 GMT</pubDate>
    <dc:creator>paulrockliffe</dc:creator>
    <dc:date>2017-02-01T10:10:52Z</dc:date>
    <item>
      <title>Dates in Character Format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329023#M21869</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got some dates that I need to do use in filters and prompts. &amp;nbsp;They are month end dates stored as a string and they're in the format 0911 = 30 September 2011. &amp;nbsp;I'm struggling to convert the numbers to dates in a way that doesn't end up as 911 days after 1 Jan 1960.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Enterprise Guide 5.1 and would prefer a solution that I can use in a computed column. &amp;nbsp;I'd also like to know how to convert this into both Sep 2011 or 30 Sep 2011, I'm not sure which will be most useful at this stage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 10:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329023#M21869</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-01T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in Character Format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329039#M21873</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;num_date = input('01'!!char_date,ddmmyy6.);
* now you have the first day of the month;
num_date = intnx('month',num_date,0,'end');
* now you have the last day of the month;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 11:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329039#M21873</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-01T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in Character Format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329059#M21878</link>
      <description>&lt;P&gt;Thanks, that's brilliant!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I'd remembered that || is concatenate I managed to work out what you were doing. &amp;nbsp;My problem was that I don't know SAS dates well enough to know whether 0911 can be a valid date, I assumed it could and ran into trouble. &amp;nbsp;Next time I'll know better!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 12:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dates-in-Character-Format/m-p/329059#M21878</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-01T12:16:22Z</dc:date>
    </item>
  </channel>
</rss>

