<?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 Date Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865887#M341956</link>
    <description>&lt;P&gt;How do I separate the day, month, year and add hours from date 23MAR2023:09:23:46.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The view I want to achieve is below :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Day&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;TD&gt;MAR&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 23 Mar 2023 10:35:11 GMT</pubDate>
    <dc:creator>Ela_84</dc:creator>
    <dc:date>2023-03-23T10:35:11Z</dc:date>
    <item>
      <title>Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865887#M341956</link>
      <description>&lt;P&gt;How do I separate the day, month, year and add hours from date 23MAR2023:09:23:46.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The view I want to achieve is below :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Day&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;TD&gt;MAR&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865887#M341956</guid>
      <dc:creator>Ela_84</dc:creator>
      <dc:date>2023-03-23T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865896#M341961</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
     set have;
     day=day(datepart(date));
     month=month(datepart(date));
     year= ; /* See if you can figure it out based on the above);
     hours=hour(date);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865896#M341961</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-23T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865897#M341962</link>
      <description>&lt;P&gt;See &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n01f5qrjoh9h4hn1olbdpb5pr2td.htm#:~:text=global%20macro%20variable.-,Date%20and%20Time,-CALL%20IS8601_CONVERT%20Routine" target="_self"&gt;Data/ and Time&lt;/A&gt; functions&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_ ;
	datetime=datetime() ;
	datepart=datepart(datetime) ;
	day=day(datepart) ;
	month=month(datepart) ;
	year=year(datepart) ;
	hour=hour(datetime) ;
	put _all_ ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Format/m-p/865897#M341962</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2023-03-23T11:29:39Z</dc:date>
    </item>
  </channel>
</rss>

