<?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 make char date to iso date format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578967#M164286</link>
    <description>&lt;P&gt;Try next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas_date = cats('"', input(compress(date_in), 'D"',date9.);

format sas_date yymmdd10.;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 04 Aug 2019 05:28:07 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2019-08-04T05:28:07Z</dc:date>
    <item>
      <title>how to make char date to iso date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578962#M164285</link>
      <description>&lt;P&gt;I have a char date which is something like "17 Nov 2016" and i want to make it as "2016-11-17".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried&amp;nbsp; A=INPUT(E,is8601da.);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it didnt work as the input is char variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 04:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578962#M164285</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2019-08-04T04:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to make char date to iso date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578967#M164286</link>
      <description>&lt;P&gt;Try next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas_date = cats('"', input(compress(date_in), 'D"',date9.);

format sas_date yymmdd10.;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Aug 2019 05:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578967#M164286</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-04T05:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to make char date to iso date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578968#M164287</link>
      <description>&lt;P&gt;I get error while using&lt;/P&gt;
&lt;P&gt;data ec;&lt;BR /&gt;6528&lt;BR /&gt;6529 dat="17 Nov 2016";&lt;BR /&gt;6530 sas_date = cats('"', input(compress(dat), 'D"',date9.);&lt;BR /&gt;----&lt;BR /&gt;85&lt;BR /&gt;76&lt;BR /&gt;ERROR 85-322: Expecting a format name.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 05:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578968#M164287</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2019-08-04T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to make char date to iso date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578969#M164288</link>
      <description>&lt;P&gt;Convert it to an actual date and then convert it back into a character string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;A=put(input(E,date11.),yymmdd10.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Aug 2019 05:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578969#M164288</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-04T05:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to make char date to iso date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578971#M164290</link>
      <description>&lt;P&gt;Make it simpler:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas_date = input(compress(date_in),date9.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Aug 2019 06:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-char-date-to-iso-date-format/m-p/578971#M164290</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-04T06:39:44Z</dc:date>
    </item>
  </channel>
</rss>

