<?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: ISO8601 to Numeric and back to ISO8601 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616210#M18862</link>
    <description>&lt;P&gt;Then you would need to create a custom format with an embedded function that uses the shorter format when there are no seconds (mod(value,60) = 0).&lt;/P&gt;
&lt;P&gt;Or if you just need it in a report, conditionally format to a string first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My VERY STRONG advice: don't do it, it's not worth the effort. If somebody complains, use a &lt;A href="http://catb.org/jargon/html/L/LART.html" target="_blank" rel="noopener"&gt;LART&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 14:27:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-01-09T14:27:40Z</dc:date>
    <item>
      <title>ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616189#M18857</link>
      <description>&lt;P&gt;I'm having issues converting iso8601 date to numeric and back to iso8601. When converting back to iso8601, I'm getting extra 00's in the time component.&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;2019-12-01T16:40 gets converted to numeric,.To reconvert it back I'm getting&amp;nbsp;2019-12-01T16:40:&lt;STRONG&gt;00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ANy help is apprecited.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616189#M18857</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2020-01-09T13:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616192#M18858</link>
      <description>&lt;P&gt;Just use proper format lengths:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input dt :e8601dt17.;
format dt e8601dt17.;
datalines;
2019-12-01T16:40
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616192#M18858</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-09T13:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616197#M18859</link>
      <description>&lt;P&gt;THanks. what if the some dates have seconds like 2019-12-01T16:40:&lt;STRONG&gt;35&amp;nbsp; and some dont have&amp;nbsp;2019-12-01T16:40?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616197#M18859</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2020-01-09T14:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616200#M18860</link>
      <description>&lt;P&gt;Use the longer format.&lt;/P&gt;
&lt;P&gt;2019-12-02T16:40 equals 2019-12-01T16:40:00 anyway, so there's no need to mask the seconds. The shorter format is only useful when seconds don't count.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616200#M18860</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-09T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616205#M18861</link>
      <description>&lt;P&gt;If the date doesnt have seconds ,I dont want to display seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616205#M18861</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2020-01-09T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616210#M18862</link>
      <description>&lt;P&gt;Then you would need to create a custom format with an embedded function that uses the shorter format when there are no seconds (mod(value,60) = 0).&lt;/P&gt;
&lt;P&gt;Or if you just need it in a report, conditionally format to a string first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My VERY STRONG advice: don't do it, it's not worth the effort. If somebody complains, use a &lt;A href="http://catb.org/jargon/html/L/LART.html" target="_blank" rel="noopener"&gt;LART&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616210#M18862</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-09T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 to Numeric and back to ISO8601</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616214#M18863</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16600"&gt;@SASPhile&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If the date doesnt have seconds ,I dont want to display seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you need to store that information in another variable. The easiest way is to just keep the original text string.&amp;nbsp; Or you could store the length of the original string.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-to-Numeric-and-back-to-ISO8601/m-p/616214#M18863</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-09T14:33:14Z</dc:date>
    </item>
  </channel>
</rss>

