<?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 character to date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711193#M26889</link>
    <description>&lt;P&gt;I have a dataset which has characters&lt;/P&gt;&lt;P&gt;Start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number&lt;/P&gt;&lt;P&gt;06/23/2004&amp;nbsp;&amp;nbsp; 12/15/2020&amp;nbsp;&amp;nbsp; 20030704&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234456&lt;/P&gt;&lt;P&gt;I want to change this to numeric date format.&lt;/P&gt;&lt;P&gt;For,&lt;/P&gt;&lt;P&gt;start and stop: mm/dd/yyyy and&lt;/P&gt;&lt;P&gt;Date: yyyymmdd&lt;/P&gt;&lt;P&gt;Number: numeric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 16:41:54 GMT</pubDate>
    <dc:creator>Smitha9</dc:creator>
    <dc:date>2021-01-13T16:41:54Z</dc:date>
    <item>
      <title>character to date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711193#M26889</link>
      <description>&lt;P&gt;I have a dataset which has characters&lt;/P&gt;&lt;P&gt;Start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number&lt;/P&gt;&lt;P&gt;06/23/2004&amp;nbsp;&amp;nbsp; 12/15/2020&amp;nbsp;&amp;nbsp; 20030704&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234456&lt;/P&gt;&lt;P&gt;I want to change this to numeric date format.&lt;/P&gt;&lt;P&gt;For,&lt;/P&gt;&lt;P&gt;start and stop: mm/dd/yyyy and&lt;/P&gt;&lt;P&gt;Date: yyyymmdd&lt;/P&gt;&lt;P&gt;Number: numeric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711193#M26889</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2021-01-13T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: character to date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711206#M26890</link>
      <description>&lt;P&gt;If you have a string like '06/23/2004' you can convert it to an actual date using the INPUT() function with the MMDDYY10. informat specification.&lt;/P&gt;
&lt;P&gt;If you have a number like&amp;nbsp;&lt;SPAN&gt;20,030,704 you can convert it to an actual date value by first using the PUT() function with the 8. or Z8. format specification to convert it to a string like '20030704' and then use the INPUT() function with the YYMMDD8. informat specification.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you have date values you an attach the YYMMDDN8. format to them to have them display as strings the look like 20030704.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to convert date values to a number like 20,030,704 then first use the PUT() function with the&amp;nbsp;YYMMDDN8. format and then use the INPUT() function with the 8. informat.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711206#M26890</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-13T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: character to date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711207#M26891</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date  = input(start,mmddyy10.); /* start date given as char type */&lt;BR /&gt;format&amp;nbsp;date&amp;nbsp;mmddyy10.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/character-to-date/m-p/711207#M26891</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-01-13T16:56:21Z</dc:date>
    </item>
  </channel>
</rss>

