<?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 String (in yyyy-mm-dd format) to Date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645335#M192898</link>
    <description>&lt;P&gt;Hint in reading informat and format descriptions:&lt;/P&gt;
&lt;P&gt;YY = year&amp;nbsp; (2 or 4 digits)&lt;/P&gt;
&lt;P&gt;MM = month number&lt;/P&gt;
&lt;P&gt;DD = day of month number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when your data is in year month day order it becomes a bit more obvious that you want some form of YYMMDD informat/format.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 15:30:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-05-05T15:30:24Z</dc:date>
    <item>
      <title>How to convert Character String (in yyyy-mm-dd format) to Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645310#M192885</link>
      <description>&lt;P&gt;I have a column calls as_of_date which&amp;nbsp;is a&amp;nbsp;character filed&amp;nbsp;and&amp;nbsp;the format&amp;nbsp;is yyyy-mm-dd like 2020-05-01. How do I convert it to numeric?&lt;/P&gt;&lt;P&gt;I tried input(as_of_date, DDMMYY10.) and several of other formats but they did not work.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645310#M192885</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2020-05-05T14:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Character String (in yyyy-mm-dd format) to Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645311#M192886</link>
      <description>&lt;P&gt;When you have a YMD order in the data, you need a YMD informat, so try&lt;/P&gt;
&lt;PRE&gt;input(as_of_date,yymmdd10.)&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 14:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645311#M192886</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Character String (in yyyy-mm-dd format) to Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645313#M192887</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    dt1 = '2020-05-01';
    dt2 = input(dt1, yymmdd10.);
    format dt2 yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 14:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645313#M192887</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-05-05T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Character String (in yyyy-mm-dd format) to Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645335#M192898</link>
      <description>&lt;P&gt;Hint in reading informat and format descriptions:&lt;/P&gt;
&lt;P&gt;YY = year&amp;nbsp; (2 or 4 digits)&lt;/P&gt;
&lt;P&gt;MM = month number&lt;/P&gt;
&lt;P&gt;DD = day of month number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when your data is in year month day order it becomes a bit more obvious that you want some form of YYMMDD informat/format.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 15:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-Character-String-in-yyyy-mm-dd-format-to-Date/m-p/645335#M192898</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-05T15:30:24Z</dc:date>
    </item>
  </channel>
</rss>

