<?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: How to convert number(DateTime format) to character in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488381#M3404</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;HireDate_CHAR = put(hiredate, &lt;FONT size="4" color="#800080"&gt;&lt;STRONG&gt;yymmdd8.&lt;/STRONG&gt;&lt;/FONT&gt;);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The format in purple is what controls the appearance. You can change the format to get different outputs if desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 22:09:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-08-20T22:09:25Z</dc:date>
    <item>
      <title>How to convert number(DateTime format) to character</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488331#M3401</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck in a situation. I have data(Date) type is number and format is DATE9&lt;/P&gt;&lt;P&gt;example-&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Employee Hire Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12MAR1985&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;12MAR1985 is number in Date9 format.&lt;/P&gt;&lt;P&gt;I want it to convert into String or Character. So that I can use it in my way.&lt;/P&gt;&lt;P&gt;Please help me on this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Anmol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488331#M3401</guid>
      <dc:creator>anmolk171</dc:creator>
      <dc:date>2018-08-20T19:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert number(DateTime format) to character</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488333#M3402</link>
      <description>data want;
   set have;
   chardate = put(date, date9.);
   /* or other date format you did not specify*/
run;

Though if "use it my way" involves any further processing in SAS you are likely going to cause yourself more work.</description>
      <pubDate>Mon, 20 Aug 2018 19:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488333#M3402</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-20T19:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert number(DateTime format) to character</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488334#M3403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you provide me the exact code. I am new to SAS. My table name is EmpData, variable is HireDate(Number-&amp;gt;DateFormat9).&lt;/P&gt;&lt;P&gt;I want to change HireData into character or string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488334#M3403</guid>
      <dc:creator>anmolk171</dc:creator>
      <dc:date>2018-08-20T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert number(DateTime format) to character</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488381#M3404</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;HireDate_CHAR = put(hiredate, &lt;FONT size="4" color="#800080"&gt;&lt;STRONG&gt;yymmdd8.&lt;/STRONG&gt;&lt;/FONT&gt;);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The format in purple is what controls the appearance. You can change the format to get different outputs if desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 22:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-convert-number-DateTime-format-to-character/m-p/488381#M3404</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-20T22:09:25Z</dc:date>
    </item>
  </channel>
</rss>

