<?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 DATETIME to ISO8601 format ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/297435#M62458</link>
    <description>&lt;P&gt;data _NULL_;&lt;BR /&gt;format&lt;BR /&gt;dt datetime20.&lt;BR /&gt;dt2 E8601DT20.&lt;BR /&gt;;&lt;BR /&gt;dt=datetime();&lt;BR /&gt;dt2=dt;&lt;BR /&gt;put dt= dt2=;&lt;BR /&gt;txt=put(dt,datetime20.);&lt;BR /&gt;txt2=put(dt2,E8601DT20.);&lt;BR /&gt;put txt= txt2=;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 15:49:17 GMT</pubDate>
    <dc:creator>Michiel</dc:creator>
    <dc:date>2016-09-09T15:49:17Z</dc:date>
    <item>
      <title>How to convert DATETIME to ISO8601 format ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/297427#M62452</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I convert &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;05AUG16:17:10:05&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;to &amp;nbsp;&lt;STRONG&gt;2016-08-05T17:10:05 &amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 15:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/297427#M62452</guid>
      <dc:creator>bobbyc</dc:creator>
      <dc:date>2016-09-09T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert DATETIME to ISO8601 format ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/297435#M62458</link>
      <description>&lt;P&gt;data _NULL_;&lt;BR /&gt;format&lt;BR /&gt;dt datetime20.&lt;BR /&gt;dt2 E8601DT20.&lt;BR /&gt;;&lt;BR /&gt;dt=datetime();&lt;BR /&gt;dt2=dt;&lt;BR /&gt;put dt= dt2=;&lt;BR /&gt;txt=put(dt,datetime20.);&lt;BR /&gt;txt2=put(dt2,E8601DT20.);&lt;BR /&gt;put txt= txt2=;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 15:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/297435#M62458</guid>
      <dc:creator>Michiel</dc:creator>
      <dc:date>2016-09-09T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert DATETIME to ISO8601 format ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/898880#M355283</link>
      <description>&lt;P&gt;I found the reply helpful, but it is difficult to read the answer in current alignment. Hence, I am wring the same answer with proper alignment.&lt;/P&gt;
&lt;P&gt;=================================================================================&lt;/P&gt;
&lt;P&gt;data _NULL_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format&amp;nbsp;dt datetime20.&amp;nbsp;dt2 E8601DT20.&amp;nbsp;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt=datetime();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt2=dt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put dt= dt2=;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txt=put(dt,datetime20.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txt2=put(dt2,E8601DT20.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put txt= txt2=;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;================================================================================&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 05:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-DATETIME-to-ISO8601-format/m-p/898880#M355283</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2023-10-17T05:50:19Z</dc:date>
    </item>
  </channel>
</rss>

