<?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 different type of character date into ISO8601 format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878484#M347078</link>
    <description>&lt;P&gt;Read character data into a SAS date (or time or datetime) value with an appropriate Informat. Assign the desired ISO format to that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue can be determining the proper informat because there are so many possibilities. Pray that at least the years are all 4-digits or the issue can get pretty ugly.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 16:10:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-05-31T16:10:13Z</dc:date>
    <item>
      <title>How to convert different type of character date into ISO8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878458#M347065</link>
      <description>&lt;P&gt;For example i have dates in character such as "01-JUN-2021", "05MAY2022", "01-11-2020", "12/12/2022", how can i know in which format they are, or what delimiter they have for converting to iso8601?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878458#M347065</guid>
      <dc:creator>gor1707</dc:creator>
      <dc:date>2023-05-31T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert different type of character date into ISO8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878460#M347067</link>
      <description>&lt;P&gt;Try using ANYDTDTE so SAS will read it in automatically.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/vdmmlcdc/8.1/leforinforref/n04jh1fkv5c8zan14fhqcby7jsu4.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/vdmmlcdc/8.1/leforinforref/n04jh1fkv5c8zan14fhqcby7jsu4.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443257"&gt;@gor1707&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For example i have dates in character such as "01-JUN-2021", "05MAY2022", "01-11-2020", "12/12/2022", how can i know in which format they are, or what delimiter they have for converting to iso8601?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878460#M347067</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-31T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert different type of character date into ISO8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878464#M347069</link>
      <description>&lt;P&gt;One of the problems when you get dates like&amp;nbsp;&lt;SPAN&gt;"01-11-2020" is that you can't know, and we can't know, whether this is January 11, 2020 or November 1, 2020.&amp;nbsp;ANYDTDTE&amp;nbsp;will convert them to actual SAS dates, but there's no guarantee that it will pick January 11, 2020 or November 1, 2020 properly. Unless you can go back and ask the providers of the data what "01-11-2020" means (perhaps they have documentation), this is an unsolvable problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878464#M347069</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-31T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert different type of character date into ISO8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878465#M347070</link>
      <description>Correct, but same issue if doing it manually.</description>
      <pubDate>Wed, 31 May 2023 15:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878465#M347070</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-31T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert different type of character date into ISO8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878484#M347078</link>
      <description>&lt;P&gt;Read character data into a SAS date (or time or datetime) value with an appropriate Informat. Assign the desired ISO format to that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue can be determining the proper informat because there are so many possibilities. Pray that at least the years are all 4-digits or the issue can get pretty ugly.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 16:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-different-type-of-character-date-into-ISO8601/m-p/878484#M347078</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-31T16:10:13Z</dc:date>
    </item>
  </channel>
</rss>

