<?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: format date time in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/665997#M22952</link>
    <description>&lt;P&gt;Have a look at the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=nlsref&amp;amp;docsetTarget=n0p6que2vl2tynn19w461bqonyd9.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;NLDATMS&lt;/A&gt;&amp;nbsp;format.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 06:09:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-06-30T06:09:40Z</dc:date>
    <item>
      <title>format date time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/665978#M22950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data,&lt;/P&gt;&lt;P&gt;2020-03-20 13:00:23&lt;/P&gt;&lt;P&gt;2019-04-28 14:18:00&lt;/P&gt;&lt;P&gt;2015-05-20 15:20:30&lt;/P&gt;&lt;P&gt;I want to change to&amp;nbsp;&lt;/P&gt;&lt;P&gt;03/20/2020 13:00:23&lt;/P&gt;&lt;P&gt;04/28/2019 14:18:00&lt;/P&gt;&lt;P&gt;05/20/2015 15:20:30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you let me know the code.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 03:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/665978#M22950</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-06-30T03:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: format date time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/665997#M22952</link>
      <description>&lt;P&gt;Have a look at the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=nlsref&amp;amp;docsetTarget=n0p6que2vl2tynn19w461bqonyd9.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;NLDATMS&lt;/A&gt;&amp;nbsp;format.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 06:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/665997#M22952</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-30T06:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: format date time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666013#M22955</link>
      <description>Is the date in character format</description>
      <pubDate>Tue, 30 Jun 2020 09:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666013#M22955</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-06-30T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: format date time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666020#M22956</link>
      <description>&lt;P&gt;If the date is in character format then you may try the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input date&amp;amp;$20.;
cards;
2020-03-20 13:00:23
2019-04-28 14:18:00
2015-05-20 15:20:30
;

data want;
set have;
date2=cat(put(input(scan(date,1,''),yymmdd10.),ddmmyys10.),scan(date,2,''));
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2020 09:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666020#M22956</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-06-30T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: format date time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666024#M22957</link>
      <description>&lt;P&gt;To convert from character, use the E8601DT informat:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input datechar $19.;
datenum = input(datechar,e8601dt19.);
format datenum nldatms19.;
datalines;
2020-03-20 13:00:23
2019-04-28 14:18:00
2015-05-20 15:20:30
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How the datetime is displayed depends on the setting of the LOCALE= system option.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 10:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/format-date-time/m-p/666024#M22957</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-30T10:35:31Z</dc:date>
    </item>
  </channel>
</rss>

