<?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: Datetime format which excludes seconds in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768782#M243874</link>
    <description>&lt;P&gt;Format datetime14. will not display seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format e8601dt16. will not display seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And probably many others...&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 13:52:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-21T13:52:34Z</dc:date>
    <item>
      <title>Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768780#M243873</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a date variable which I want to display like this YYYYMMDD:HH:MM. I don't want to display the seconds value. I am not able to find any date time format which will help me in the above scenario.&lt;/P&gt;
&lt;P&gt;Can anyone tell me how to do this. Do we have any format available to do this?&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date&lt;/P&gt;
&lt;P&gt;101&amp;nbsp; &amp;nbsp; 2021-01-21:15:25&lt;/P&gt;
&lt;P&gt;102&amp;nbsp; &amp;nbsp; 2021-02-15:08:30&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shantanu&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768780#M243873</guid>
      <dc:creator>shantanupl1</dc:creator>
      <dc:date>2021-09-21T13:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768782#M243874</link>
      <description>&lt;P&gt;Format datetime14. will not display seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format e8601dt16. will not display seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And probably many others...&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768782#M243874</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-21T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768784#M243875</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;But if I want the complete year then what should we do. Because using datetime14. will give the year values in 2 digit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Shantanu&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768784#M243875</guid>
      <dc:creator>shantanupl1</dc:creator>
      <dc:date>2021-09-21T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768789#M243878</link>
      <description>&lt;P&gt;&lt;SPAN&gt;e8601dt16.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, create your own custom format using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_self"&gt;PICTURE&lt;/A&gt; statement&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768789#M243878</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-21T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768799#M243884</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It worked using picture statement.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768799#M243884</guid>
      <dc:creator>shantanupl1</dc:creator>
      <dc:date>2021-09-21T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768801#M243885</link>
      <description>&lt;P&gt;Yes, that's good to hear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never realized this particular deficiency of the DATETIME. format: you can't chop off the seconds and get 4 digits years.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768801#M243885</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-21T14:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format which excludes seconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768821#M243887</link>
      <description>&lt;P&gt;But if we create a picture format apply the format it converts the variable into a numeric variable not a date variable. Do you have any way to overcome this so that the variable should remain a Date variable after we apply the user defined format.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-format-which-excludes-seconds/m-p/768821#M243887</guid>
      <dc:creator>shantanupl1</dc:creator>
      <dc:date>2021-09-21T15:10:06Z</dc:date>
    </item>
  </channel>
</rss>

