<?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: Regarding the date conversion. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248639#M46719</link>
    <description>&lt;P&gt;Hi Data_null__,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gulshan&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2016 09:24:28 GMT</pubDate>
    <dc:creator>gulshy12</dc:creator>
    <dc:date>2016-02-08T09:24:28Z</dc:date>
    <item>
      <title>Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/247981#M46536</link>
      <description>&lt;P&gt;Dear Experts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing an issue while converting the below date (given as example) to the date format yymmdd10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input Date :&amp;nbsp;Wed Feb 03 00:00:00 CET 2016&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output Date: 2016-02-03 (As Expected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tired to change the input date with ANYDTDTE informat (using the INPUT function as date is coming from macro variable)and then tried to change it to YYMMdd10. format but it did not work out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gulshan&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 14:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/247981#M46536</guid>
      <dc:creator>gulshy12</dc:creator>
      <dc:date>2016-02-04T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248008#M46550</link>
      <description>&lt;P&gt;What does not work mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post your code and log including any errors you received.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248008#M46550</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-04T15:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248010#M46552</link>
      <description>&lt;P&gt;Hello Gulshan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only need the date, please try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let d=Wed Feb 03 00:00:00 CET 2016;

data _null_;
d=input(cats(scan("&amp;amp;d",3),scan("&amp;amp;d",2),scan("&amp;amp;d",-1)), date9.);
put d= yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need the full datetime information, I suggest this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
dt=input(cats(scan("&amp;amp;d",3),scan("&amp;amp;d",2),scan("&amp;amp;d",-1)||':'||scan("&amp;amp;d",4)), datetime.);
d=datepart(dt);
put dt= datetime19.;
put d= yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248010#M46552</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-04T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248017#M46555</link>
      <description>&lt;P&gt;Perhaps you're not telling the whole story.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;34         %put NOTE: &amp;amp;=sysvlong;
NOTE: SYSVLONG=9.04.01M3P062415
35         data _null_;
36            input str $40. @1 date &amp;amp; ANYDTDTE.;
37            format date YYMMdd10. /*worddate.*/;
38            put (_all_)(/=);
39            cards;


str=Wed Feb 03 00:00:00 CET 2016
date=2016-02-03&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248017#M46555</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-04T15:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248637#M46718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733" target="_self"&gt;FreelanceReinhard&lt;/A&gt;,&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 class="login-bold"&gt;Thanks a million &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; for the solution.. it worked for me.&amp;nbsp;&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 class="login-bold"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Gulshan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248637#M46718</guid>
      <dc:creator>gulshy12</dc:creator>
      <dc:date>2016-02-08T09:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the date conversion.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248639#M46719</link>
      <description>&lt;P&gt;Hi Data_null__,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gulshan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-the-date-conversion/m-p/248639#M46719</guid>
      <dc:creator>gulshy12</dc:creator>
      <dc:date>2016-02-08T09:24:28Z</dc:date>
    </item>
  </channel>
</rss>

