<?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: Cannot find a SAS Datetime Informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873436#M345108</link>
    <description>&lt;P&gt;Yes the new column does. I wanted to convert to show up as a Date format only. No time. However I can't find the right datetime informat so I can load the data into CAS with the informat and format in one step at the beginning.&lt;BR /&gt;&lt;BR /&gt;Since I can't find the informat or it doesn't exist I have to extract the first part then use an informat that is known but that requires more steps.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 17:20:44 GMT</pubDate>
    <dc:creator>Gary_Z</dc:creator>
    <dc:date>2023-05-02T17:20:44Z</dc:date>
    <item>
      <title>Cannot find a SAS Datetime Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873399#M345092</link>
      <description>&lt;P&gt;What is the SAS datetime informat for the datetime value of 2021/08/19 18:00:54+00?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the ISO8601 datetime informat and datetime20. format but that does not work.&lt;/P&gt;&lt;P&gt;The column is a double and has a date format but all the values in the column are NaT&lt;/P&gt;&lt;P&gt;I am using SAS Viya for Python&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873399#M345092</guid>
      <dc:creator>Gary_Z</dc:creator>
      <dc:date>2023-05-02T15:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find a SAS Datetime Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873435#M345107</link>
      <description>You say the column is a double and has a date format. Is that the new column or original column? This is a datetime, so should have a datetime format as well.</description>
      <pubDate>Tue, 02 May 2023 17:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873435#M345107</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-02T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find a SAS Datetime Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873436#M345108</link>
      <description>&lt;P&gt;Yes the new column does. I wanted to convert to show up as a Date format only. No time. However I can't find the right datetime informat so I can load the data into CAS with the informat and format in one step at the beginning.&lt;BR /&gt;&lt;BR /&gt;Since I can't find the informat or it doesn't exist I have to extract the first part then use an informat that is known but that requires more steps.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873436#M345108</guid>
      <dc:creator>Gary_Z</dc:creator>
      <dc:date>2023-05-02T17:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find a SAS Datetime Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873446#M345116</link>
      <description>&lt;P&gt;If you just want the date component, read it with a date informat and limit the character count - see the want_date variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does not read the time zone component correctly, but gets you close.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
have = '2021/08/19 18:00:54+04';
change_look = trim(translate(have, '-T', '/ '));
want = input(change_look, E8601DT.);
want_date = input(have, yymmdd10.);
format want datetime22. want_date date9.;
run;

proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2023 17:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-find-a-SAS-Datetime-Informat/m-p/873446#M345116</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-02T17:58:04Z</dc:date>
    </item>
  </channel>
</rss>

