<?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 to iso8601 format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613845#M179337</link>
    <description>&lt;P&gt;I have a following date i have to convert it to numeric and iso8601 format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UN-UNK-1975&lt;/P&gt;
&lt;P&gt;UN-OCT-1986&lt;/P&gt;
&lt;P&gt;18-OCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected o/p:&lt;/P&gt;
&lt;P&gt;1975&lt;/P&gt;
&lt;P&gt;10-1986&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 03:45:19 GMT</pubDate>
    <dc:creator>Vijay77</dc:creator>
    <dc:date>2019-12-26T03:45:19Z</dc:date>
    <item>
      <title>convert to iso8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613845#M179337</link>
      <description>&lt;P&gt;I have a following date i have to convert it to numeric and iso8601 format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UN-UNK-1975&lt;/P&gt;
&lt;P&gt;UN-OCT-1986&lt;/P&gt;
&lt;P&gt;18-OCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected o/p:&lt;/P&gt;
&lt;P&gt;1975&lt;/P&gt;
&lt;P&gt;10-1986&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 03:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613845#M179337</guid>
      <dc:creator>Vijay77</dc:creator>
      <dc:date>2019-12-26T03:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert to iso8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613855#M179346</link>
      <description>&lt;P&gt;1975 and 10-1986 are not valid dates in any format - a date requires a day, month and a year. If you only know the year 1975 what would you default your date to? 01-01-1975? Similarly does 10-1986 become 01-10-1986?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 05:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613855#M179346</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-26T05:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert to iso8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613858#M179349</link>
      <description>&lt;P&gt;You need more examples in order to define the algorithm.&lt;/P&gt;
&lt;P&gt;I suggest to locate in your input:&lt;/P&gt;
&lt;P&gt;1) A 4 digits sub-string&amp;nbsp; assumed as a year&lt;/P&gt;
&lt;P&gt;2) A 3 characters sub-string to be checked against a list or by a format&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; containing all months (JAN FEB MAR ...)&lt;/P&gt;
&lt;P&gt;3) Is there in your input full name month? (JANUARY FEBRUARY ...) or&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; mixed case like January February ... ? or month given in digits ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If answer is positive you need more code in the algorithm.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 07:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613858#M179349</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-12-26T07:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: convert to iso8601 format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613862#M179351</link>
      <description>&lt;P&gt;Your expected output does not conform to ISO 8601. Your question makes no sense.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 08:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-to-iso8601-format/m-p/613862#M179351</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-26T08:28:24Z</dc:date>
    </item>
  </channel>
</rss>

