<?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 format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581340#M13660</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not on a machine where I can do documentation right now. You can look in the list of formats for the right format to get the date the&amp;nbsp; way you want.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 03:42:12 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-08-15T03:42:12Z</dc:date>
    <item>
      <title>ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581303#M13652</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have below data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 171px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31757iC1BA825DAC95A107/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And attributes are as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 1.PNG" style="width: 399px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31758i6BDBAC0B9241ECFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 1.PNG" alt="Capture 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to convert it to iso8601 character format. Could you please give me some idea how to convert this type of data into ISO 8601 character?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581303#M13652</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-14T22:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581306#M13653</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117414"&gt;@chinna0369&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have below data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 171px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31757iC1BA825DAC95A107/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And attributes are as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 1.PNG" style="width: 399px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31758i6BDBAC0B9241ECFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 1.PNG" alt="Capture 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to convert it to iso8601 character format. Could you please give me some idea how to convert this type of data into ISO 8601 character?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adi&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which specific ISO format? SAS has about&amp;nbsp; 20 different ISO format that could be used. Look in the documentation for B8601 and E8601 formats.&lt;/P&gt;
&lt;P&gt;Since your current value is CHARACTER likely the first step would be to get a SAS date time value using the input function and then PUT the result into a character value using the appropriate format. Or create a datetime variable and just associate the desired format. Then if you want to display the value as something else you may only need to change a format and not modify the data set.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 23:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581306#M13653</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-14T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581308#M13654</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me some example code by using b8601.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 23:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581308#M13654</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-14T23:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581315#M13655</link>
      <description>&lt;P&gt;Here's an example. As you can see, a numeric variable formatted with the ISO format and a character variable created using the same format both look the same. I consider it a best practice to always store dates as numeric variables and control the display with a FORMAT statement. Dates stored as character strings are rarely useful.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iso8601_convert_date.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31761iF9CB17B41AE1C8A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="iso8601_convert_date.png" alt="iso8601_convert_date.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 23:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581315#M13655</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-14T23:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581317#M13656</link>
      <description>&lt;P&gt;Thank you so much Cynthia_sas&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 00:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581317#M13656</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-15T00:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581320#M13657</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now we are getting date as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 138px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31762i1B66AD03C5F7BE08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do I need to use if want to get as below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 1.PNG" style="width: 148px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31763i78269AFB8B824B07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 1.PNG" alt="Capture 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Aug 2019 00:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581320#M13657</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-15T00:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581340#M13660</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not on a machine where I can do documentation right now. You can look in the list of formats for the right format to get the date the&amp;nbsp; way you want.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 03:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581340#M13660</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-15T03:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581456#M13681</link>
      <description>&lt;P&gt;That looks like you may want the E8601DTw.d format but the shortest version of that is 19 characters and will show seconds.&lt;/P&gt;
&lt;P&gt;If that is unacceptable you will have to create a custom format.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 15:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581456#M13681</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-15T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: ISO8601 format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581551#M13702</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I got it. I changed it to "&lt;SPAN&gt;&amp;nbsp;E8601DTw.d&lt;/SPAN&gt;" it looks fine to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adithya&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 18:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ISO8601-format/m-p/581551#M13702</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-15T18:23:28Z</dc:date>
    </item>
  </channel>
</rss>

