<?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 a character date into a numeric date? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506488#M6429</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/227103"&gt;@5062917&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dataset where dates are stored as a character in the format, MMM DD YYYY, 00:00, e.g."&lt;SPAN&gt;Jun 26 2015, 08:38" or "Apr 9 2015, 20:15". Is there any way to turn this into a numeric date?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Date (day information only) or datetime which includes the time portion? SAS does treat those differently and is important to be precise.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 16:01:55 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-10-22T16:01:55Z</dc:date>
    <item>
      <title>How to convert a character date into a numeric date?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506277#M6424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset where dates are stored as a character in the format, MMM DD YYYY, 00:00, e.g."&lt;SPAN&gt;Jun 26 2015, 08:38" or "Apr 9 2015, 20:15". Is there any way to turn this into a numeric date?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 00:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506277#M6424</guid>
      <dc:creator>5062917</dc:creator>
      <dc:date>2018-10-21T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character date into a numeric date?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506278#M6425</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
k="Apr 9 2015, 20:15  ";
output;
k="Jun 26 2015, 08:38";
output;
run;
data want;
set have;
k1=input(k,anydtdtm21.);
format k1 datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Oct 2018 00:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506278#M6425</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-21T00:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a character date into a numeric date?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506488#M6429</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/227103"&gt;@5062917&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dataset where dates are stored as a character in the format, MMM DD YYYY, 00:00, e.g."&lt;SPAN&gt;Jun 26 2015, 08:38" or "Apr 9 2015, 20:15". Is there any way to turn this into a numeric date?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Date (day information only) or datetime which includes the time portion? SAS does treat those differently and is important to be precise.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 16:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-a-character-date-into-a-numeric-date/m-p/506488#M6429</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-22T16:01:55Z</dc:date>
    </item>
  </channel>
</rss>

