<?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: converting datetime20. to a character. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829337#M35522</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   dt  = '18AUG2022:13:41:10'dt;
   cdt = put(dt, datetime20.);
   format dt datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Aug 2022 11:45:27 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-08-19T11:45:27Z</dc:date>
    <item>
      <title>converting datetime20. to a character.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829336#M35521</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help with converting datetime20. to a character.&lt;/P&gt;
&lt;P&gt;The format of the data is as follows:&lt;/P&gt;
&lt;P&gt;18AUG2022:13:41:10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert it to character because I am concatenating this field with another character field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829336#M35521</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2022-08-19T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: converting datetime20. to a character.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829337#M35522</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   dt  = '18AUG2022:13:41:10'dt;
   cdt = put(dt, datetime20.);
   format dt datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829337#M35522</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-08-19T11:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: converting datetime20. to a character.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829349#M35525</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338030"&gt;@Citrine10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help with converting datetime20. to a character.&lt;/P&gt;
&lt;P&gt;The format of the data is as follows:&lt;/P&gt;
&lt;P&gt;18AUG2022:13:41:10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert it to character because I am concatenating this field with another character field.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In that case you probably do not want to use DATETIME format.&amp;nbsp; Instead use something like E8601DT19. that will generate a string that will sort in chronological order.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 12:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829349#M35525</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-19T12:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: converting datetime20. to a character.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829543#M35541</link>
      <description>&lt;P&gt;Alternatively, use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p06uh7sqlh94nxn1gezyms3e9njn.htm" target="_blank" rel="noopener"&gt;VVALUE Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 07:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/converting-datetime20-to-a-character/m-p/829543#M35541</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-21T07:02:21Z</dc:date>
    </item>
  </channel>
</rss>

