<?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 How to convert date format with multiple date format in one column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935770#M367890</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert the dates below to IS8601DA , but one date was not considering that one is in date9. format.&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="raja777pharma_0-1721019259231.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98401i9725EEEBF6CCADF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raja777pharma_0-1721019259231.png" alt="raja777pharma_0-1721019259231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 04:55:09 GMT</pubDate>
    <dc:creator>raja777pharma</dc:creator>
    <dc:date>2024-07-15T04:55:09Z</dc:date>
    <item>
      <title>How to convert date format with multiple date format in one column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935770#M367890</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert the dates below to IS8601DA , but one date was not considering that one is in date9. format.&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="raja777pharma_0-1721019259231.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98401i9725EEEBF6CCADF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raja777pharma_0-1721019259231.png" alt="raja777pharma_0-1721019259231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 04:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935770#M367890</guid>
      <dc:creator>raja777pharma</dc:creator>
      <dc:date>2024-07-15T04:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date format with multiple date format in one column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935771#M367891</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I am trying to convert the dates below to IS8601DA&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you trying to convert strings to SAS dates with a IS8601DA format?&lt;/P&gt;
&lt;P&gt;If so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE; 
  A='2014-05-01T05:01'; output;
  A='2014-05-01      '; output;
  A='12oct2014       '; output;
run;
  
data WANT;
  set HAVE;
  DATE=input(A,anydtdte10.);
  format DATE date9.;
  put DATE=;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="sasSource"&gt;&lt;FONT face="arial black,avant garde"&gt;DATE=01MAY2014&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;FONT face="arial black,avant garde"&gt;DATE=01MAY2014&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;FONT face="arial black,avant garde"&gt;DATE=12OCT2014&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 05:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935771#M367891</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-15T05:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date format with multiple date format in one column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935778#M367892</link>
      <description>&lt;P&gt;What is your original data source?&lt;/P&gt;
&lt;P&gt;Should the values be stored as dates only, as datetimes, or as separate date and time?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 08:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-date-format-with-multiple-date-format-in-one/m-p/935778#M367892</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-15T08:32:22Z</dc:date>
    </item>
  </channel>
</rss>

