<?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: Date in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781286#M38370</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as "&lt;SPAN&gt;E8601DT26.6&lt;/SPAN&gt;" is a date-time format (date + time) you need to extract the datepart from &lt;SPAN&gt;DT_CURRENT&amp;nbsp;&lt;/SPAN&gt;in order to be able to successfully use the &lt;SPAN&gt;monyy5&lt;/SPAN&gt;. format :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;datepart(DT_CURRENT) format=monyy5.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 15:46:45 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-11-19T15:46:45Z</dc:date>
    <item>
      <title>Date</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781240#M38364</link>
      <description>I have two date variables that I need to format:

- the variable "dt" has the "DDMMYY10." format; and
- the variable "dt_current" has the "E8601DT26.6" format.

When I do the code below, the variable "dt_current" returns missing. What format should I use?

proc sql;
	create table NV2 as
		select DT format=monyy5.,
			DT_CURRENT format=monyy5.
 		from NV1;		
quit;</description>
      <pubDate>Fri, 19 Nov 2021 13:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781240#M38364</guid>
      <dc:creator>Thalitacosta</dc:creator>
      <dc:date>2021-11-19T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781286#M38370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as "&lt;SPAN&gt;E8601DT26.6&lt;/SPAN&gt;" is a date-time format (date + time) you need to extract the datepart from &lt;SPAN&gt;DT_CURRENT&amp;nbsp;&lt;/SPAN&gt;in order to be able to successfully use the &lt;SPAN&gt;monyy5&lt;/SPAN&gt;. format :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;datepart(DT_CURRENT) format=monyy5.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 15:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781286#M38370</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-19T15:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781359#M38375</link>
      <description>&lt;P&gt;Looks like you have only one DATE variable. The other one is a DATETIME variable.&amp;nbsp; Date values are stored as number of days. Datetime values are stored as number of seconds.&amp;nbsp; So you cannot use the same format to display both of them.&amp;nbsp; But you could use the DTMONYY5. format to display the datetime value in the same MONYY style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Why are you displaying only two of the four digits of the year?&amp;nbsp; That can cause confusion about which century the values represent.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 18:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Date/m-p/781359#M38375</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-19T18:28:30Z</dc:date>
    </item>
  </channel>
</rss>

