<?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 CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846014#M334457</link>
    <description>&lt;P&gt;Hi team.&lt;/P&gt;&lt;P&gt;can you please assist with converting a date field from&amp;nbsp;DD/MM/YYYY to&amp;nbsp;YYYY/MM/DD however the data type does not change to date format.&lt;/P&gt;&lt;P&gt;here is my code, however my out put looks like the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rixile106_0-1669234920929.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77638i531D96E76BB6675B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rixile106_0-1669234920929.png" alt="Rixile106_0-1669234920929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA WANT;
	SET have;
	NEW_DAT = PUT ( INPUT(CREATEDDATE, MMDDYY10.), YYMMDDS10. );
	KEEP CREATEDDATE NEW_DAT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please assist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 20:22:54 GMT</pubDate>
    <dc:creator>Rixile106</dc:creator>
    <dc:date>2022-11-23T20:22:54Z</dc:date>
    <item>
      <title>CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846014#M334457</link>
      <description>&lt;P&gt;Hi team.&lt;/P&gt;&lt;P&gt;can you please assist with converting a date field from&amp;nbsp;DD/MM/YYYY to&amp;nbsp;YYYY/MM/DD however the data type does not change to date format.&lt;/P&gt;&lt;P&gt;here is my code, however my out put looks like the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rixile106_0-1669234920929.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77638i531D96E76BB6675B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rixile106_0-1669234920929.png" alt="Rixile106_0-1669234920929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA WANT;
	SET have;
	NEW_DAT = PUT ( INPUT(CREATEDDATE, MMDDYY10.), YYMMDDS10. );
	KEEP CREATEDDATE NEW_DAT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please assist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846014#M334457</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2022-11-23T20:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846017#M334458</link>
      <description>&lt;P&gt;Assuming that the little red A next the variable name in your PHOTOGRAPH of your data indicates that it is already character you should remove part of that function sandwich so that you create an actual numeric date value instead of another character string.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you read the character string using an INFORMAT that matches the style of date strings that the variable contains.&amp;nbsp; There is no month number 15 so you cannot use the MMDDYY informat.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then attach ANY date type format to the variable and SAS will display in the style that format generates.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1669235149182.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77639i45826B741C08E355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1669235149182.png" alt="Tom_0-1669235149182.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA WANT;
  SET have;
  NEW_DAT = INPUT(CREATEDDATE, DDMMYY10.) ;
  format new_dat yymmdds10. ;
   KEEP CREATEDDATE NEW_DAT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846017#M334458</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-23T20:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846024#M334462</link>
      <description>&lt;P&gt;i have try your code, however am getting the below results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rixile106_0-1669235874375.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77641iCE9B91378283BFFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rixile106_0-1669235874375.png" alt="Rixile106_0-1669235874375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846024#M334462</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2022-11-23T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846026#M334463</link>
      <description>&lt;P&gt;Make sure to use an INFORMAT that can handle the strings.&amp;nbsp; There is no month number 15.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846026#M334463</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-23T20:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT DATE  DD/MM/YYYY to YYYY/MM/DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846031#M334465</link>
      <description>Show your code and log.</description>
      <pubDate>Wed, 23 Nov 2022 20:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONVERT-DATE-DD-MM-YYYY-to-YYYY-MM-DD/m-p/846031#M334465</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-11-23T20:53:07Z</dc:date>
    </item>
  </channel>
</rss>

