<?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: ISO Date Format (&amp;quot;2018-09-04T14:11:58.000Z&amp;quot;) into Date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643803#M192189</link>
    <description>&lt;P&gt;See here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
dt_char = "2018-09-04T14:11:58.000Z";
dt_num = input(dt_char,e8601dz24.);
format dt_num e8601dx32.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;1	2018-09-04T14:11:58.000Z	2018-09-04T16:11:58.000+02:00&lt;/PRE&gt;
&lt;P&gt;(Austria, DST)&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 07:46:50 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-29T07:46:50Z</dc:date>
    <item>
      <title>ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643785#M192184</link>
      <description>&lt;P&gt;Hello, I have in a string value the date time in this format &amp;nbsp;"2018-09-04T14:11:58.000Z".&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've been trying the SAS ISO formats within an INPUT statement but can't identify the correct format from the support documentation&amp;nbsp; &lt;A title="SAS ISO Support Documentation" href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm" target="_blank" rel="noopener"&gt;SAS ISO Support Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 07:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643785#M192184</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643790#M192188</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;datevar = input(charvar, yymmdd10.);&lt;BR /&gt;&lt;BR /&gt;You would probably want to apply a format to DATEVAR.</description>
      <pubDate>Wed, 29 Apr 2020 07:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643790#M192188</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-04-29T07:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643803#M192189</link>
      <description>&lt;P&gt;See here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
dt_char = "2018-09-04T14:11:58.000Z";
dt_num = input(dt_char,e8601dz24.);
format dt_num e8601dx32.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;1	2018-09-04T14:11:58.000Z	2018-09-04T16:11:58.000+02:00&lt;/PRE&gt;
&lt;P&gt;(Austria, DST)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 07:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643803#M192189</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-29T07:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643842#M192195</link>
      <description>To add some context, I know it could be handled using MDY or similar but I want to transform the field within a JSON Map so to know the exact informat/format would help to keep the syntax simple.</description>
      <pubDate>Wed, 29 Apr 2020 09:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643842#M192195</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643863#M192204</link>
      <description>&lt;P&gt;I had some success with the code below&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE&gt;data textstring;
iso = '2018-09-04T14:11:58.000Z'; output;
iso = '2019-10-01T14:11:58.000Z'; output;
iso = '2018-09-04T14:11:58.000Z'; output;
iso = '2019-10-01T14:11:58.000Z'; output;
iso = '2019-10-01T14:44:42.000Z'; output;
run;

data t1;
set textstring;
informat t1  E8601DT16.;
format t1  E8601DT16.   t2 date9.   t3 time5.;

t1= input(iso,E8601DT16.);
t2=datepart(t1);
t3=timepart(t1);
run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643863#M192204</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T11:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643865#M192206</link>
      <description>Thank you for your assistance.   I hadn't seen these before selecting the "solution" for the thread.</description>
      <pubDate>Wed, 29 Apr 2020 11:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643865#M192206</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: ISO Date Format ("2018-09-04T14:11:58.000Z") into Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643866#M192207</link>
      <description>Thanks for your assistance.   I hadn't seen these before selecting the "solution" for the thread.</description>
      <pubDate>Wed, 29 Apr 2020 11:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ISO-Date-Format-quot-2018-09-04T14-11-58-000Z-quot-into-Date/m-p/643866#M192207</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T11:12:38Z</dc:date>
    </item>
  </channel>
</rss>

