<?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 convert character date variable having format yyyy-mm  into numeric date variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336905#M76429</link>
    <description>&lt;P&gt;Hi &amp;nbsp;KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your &amp;nbsp;response!!! &amp;nbsp;it worked perfectly&amp;nbsp;I really appreciate your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Gowtham&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2017 10:21:30 GMT</pubDate>
    <dc:creator>gowtham112</dc:creator>
    <dc:date>2017-03-01T10:21:30Z</dc:date>
    <item>
      <title>how to convert character date variable having format yyyy-mm  into numeric date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336867#M76415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column Named &amp;nbsp;"Date" which is in format YYYY-MM &amp;nbsp;and they are stored in character value .&lt;/P&gt;&lt;P&gt;I want to convert them into numeric format so that I can create a new variable called "Newdate" to store SAS date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336867#M76415</guid>
      <dc:creator>gowtham112</dc:creator>
      <dc:date>2017-03-01T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert character date variable having format yyyy-mm  into numeric date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336874#M76418</link>
      <description>&lt;P&gt;You have to make a decision which day to use for an incomplete date.&lt;/P&gt;
&lt;P&gt;If that should be the first of the month, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;newdate = input(date !! '-01',yymmdd10.);
format newdate yymmddd10.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336874#M76418</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-01T09:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert character date variable having format yyyy-mm  into numeric date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336887#M76422</link>
      <description>&lt;P&gt;Dates are stored as number of days since a given time. &amp;nbsp;So to convert your text into a number SAS needs to be able to calculate how many days since that date there are, and without day value it cannot do this, hence it cannot convert to numeric date. &amp;nbsp;The same thing happens with times, so seconds since. &amp;nbsp;Give it a default number, then you can always apply a format - i.e. change the display of the underlying data - to YYYY-MM.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336887#M76422</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-01T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert character date variable having format yyyy-mm  into numeric date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336905#M76429</link>
      <description>&lt;P&gt;Hi &amp;nbsp;KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your &amp;nbsp;response!!! &amp;nbsp;it worked perfectly&amp;nbsp;I really appreciate your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Gowtham&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336905#M76429</guid>
      <dc:creator>gowtham112</dc:creator>
      <dc:date>2017-03-01T10:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert character date variable having format yyyy-mm  into numeric date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336906#M76430</link>
      <description>Hi RW9,&lt;BR /&gt;&lt;BR /&gt;This is great!!!&lt;BR /&gt;Thank you so much!!!&lt;BR /&gt;I really appreciate your help&lt;BR /&gt;&lt;BR /&gt;Again, thanks so much!!</description>
      <pubDate>Wed, 01 Mar 2017 10:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-character-date-variable-having-format-yyyy-mm/m-p/336906#M76430</guid>
      <dc:creator>gowtham112</dc:creator>
      <dc:date>2017-03-01T10:23:22Z</dc:date>
    </item>
  </channel>
</rss>

