<?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 formating date from a string to a number with a date format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153303#M40313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where I have a date value within a character field.&amp;nbsp; Ex. 2015-01-20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have substring that porition out of the text variable but I'm not sure how to convert it to a numeric field with the correct date format so I can select the rows that have a date larger then the 01/19/2015.&amp;nbsp; In the code below I'm trying to take out the date parts and create a new variable and convert it to numeric but I keep getting "Invalid numeric data, dates='02-01-2015'"&amp;nbsp; This is listed many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14230713213395867" jivemacro_uid="_14230713213395867" modifiedtitle="true"&gt;
&lt;P&gt;data temp ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp_ ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = find(text, '[2015') ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if pos &amp;gt; 0 then do ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt = substr(substr(text, pos, 11),2) ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yr=substr(dt,1,4) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon=substr(dt,6,2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day=substr(dt,9,2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dates=catx('-',mon,day,yr) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = input(datepart(dates), date11.) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;run ;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 17:36:41 GMT</pubDate>
    <dc:creator>jerry898969</dc:creator>
    <dc:date>2015-02-04T17:36:41Z</dc:date>
    <item>
      <title>formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153303#M40313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where I have a date value within a character field.&amp;nbsp; Ex. 2015-01-20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have substring that porition out of the text variable but I'm not sure how to convert it to a numeric field with the correct date format so I can select the rows that have a date larger then the 01/19/2015.&amp;nbsp; In the code below I'm trying to take out the date parts and create a new variable and convert it to numeric but I keep getting "Invalid numeric data, dates='02-01-2015'"&amp;nbsp; This is listed many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14230713213395867" jivemacro_uid="_14230713213395867" modifiedtitle="true"&gt;
&lt;P&gt;data temp ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp_ ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = find(text, '[2015') ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if pos &amp;gt; 0 then do ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt = substr(substr(text, pos, 11),2) ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yr=substr(dt,1,4) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon=substr(dt,6,2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day=substr(dt,9,2) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dates=catx('-',mon,day,yr) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = input(datepart(dates), date11.) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;run ;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 17:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153303#M40313</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-02-04T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153304#M40314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important; background-color: #ffffff;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-family: helvetica, arial; font-weight: inherit;"&gt;data temp ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp_ ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; informat x MMDDYYD10.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = find(text, '[2015') ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if pos &amp;gt; 0 then do ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt = substr(substr(text, pos, 11),2) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yr=substr(dt,1,4) ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon=substr(dt,6,2) ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day=substr(dt,9,2) ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-family: helvetica, arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=catx('-',mon,day,yr) ;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: helvetica, arial; font-size: 9pt; font-style: inherit; font-weight: inherit; line-height: 1.5em; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; DROP POS DT YR MON DAY;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: helvetica, arial; color: black; background-color: inherit;"&gt;run ;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153304#M40314</guid>
      <dc:creator>AirtonNunes</dc:creator>
      <dc:date>2015-02-04T18:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153305#M40315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're getting the message because X is a character variable.&amp;nbsp; That means it can't be used as input to the DATEPART function.&amp;nbsp; Looks like it doesn't contain a datetime value anyway, so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simplifying your program should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set temp_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pos = find(text, '[2015');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if pos &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dt = substr(text, pos+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if input(dt, yymmdd10.) &amp;gt; '19jan2015'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ** optionally, drop dt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that DT will contain some extra characters, but the INPUT function can be limited to read only the first 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153305#M40315</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-04T18:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153306#M40316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just figured it out.&amp;nbsp; I was using a format instead of an informat on my input statement.&amp;nbsp; I did the following and it works.&amp;nbsp; Do you see any problems with me doing it this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;data temp&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = find(text, '[2015') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if pos &amp;gt; 0 then do ;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; dt = substr(substr(text, pos, 11),2) ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; dates = input(dt, anydtdte10.) ;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; if dates &amp;gt;= '01FEB2015'd then output ;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153306#M40316</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-02-04T18:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153307#M40317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're probably fine, but ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to speed things up a hair, you might go with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length dt $ 10;&lt;/P&gt;&lt;P&gt;dt = substr(text, pos+1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANYDTDTE should have no trouble with dates in YYMMDD10 form.&amp;nbsp; If your incoming date values might take on other forms, you can expect that ANYDTDTE can read them but may not do so 100% correctly.&amp;nbsp; For example, these incoming dates could force ANYDTDTE to make a choice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01-02-2016&amp;nbsp; (which is the month and which is the day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15-03-05&amp;nbsp; (15 could be a year or could be a day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are happy letting the function decide, then you are fine.&amp;nbsp; But if you expect that your dates will always be coming in as YYMMDD10., it would be safer to use that informat to let SAS flag any other form as invalid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 20:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153307#M40317</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-04T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153308#M40318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text date will always be yyyy-mm-dd.&amp;nbsp; Should I take it in parts and create another variable in a date format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 21:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153308#M40318</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-02-04T21:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153309#M40319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no need to break it up into pieces.&amp;nbsp; This expression calculates the equivalent day on SAS's date scale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input(dt, yymmdd10.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 21:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153309#M40319</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-04T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: formating date from a string to a number with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153310#M40320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for all your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/formating-date-from-a-string-to-a-number-with-a-date-format/m-p/153310#M40320</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-02-05T14:10:16Z</dc:date>
    </item>
  </channel>
</rss>

