<?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 dateformat in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658357#M22661</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset which has admissiondate:&amp;nbsp;11APR20:23:49:00 (numeric)&lt;/P&gt;&lt;P&gt;Another dateset which has admissiondate: 2020-04-11 23:49:00 ( character)&lt;/P&gt;&lt;P&gt;I want to merge these two datasets.&lt;/P&gt;&lt;P&gt;Can you help me in this? to change character to numeric and change the formats?&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jun 2020 14:46:05 GMT</pubDate>
    <dc:creator>Smitha9</dc:creator>
    <dc:date>2020-06-14T14:46:05Z</dc:date>
    <item>
      <title>dateformat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658357#M22661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset which has admissiondate:&amp;nbsp;11APR20:23:49:00 (numeric)&lt;/P&gt;&lt;P&gt;Another dateset which has admissiondate: 2020-04-11 23:49:00 ( character)&lt;/P&gt;&lt;P&gt;I want to merge these two datasets.&lt;/P&gt;&lt;P&gt;Can you help me in this? to change character to numeric and change the formats?&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 14:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658357#M22661</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-06-14T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658358#M22662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329198"&gt;@Smitha9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should first convert the character date in dataset2 into a valid sas datetime (numeric).&lt;/P&gt;
&lt;P&gt;To do that you can do this;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dataset2_bis;
	set dataset2;
	date2 =  input ("2020-04-11 23:49:00",anydtdtm.);
	format date2 datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 14:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658358#M22662</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-14T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658360#M22663</link>
      <description>&lt;P&gt;SAS provides an informat that can read this datetime value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
instring = "2020-04-11 23:49:00";
dt = input(instring,e8601dt19.);
format dt datetime19.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Jun 2020 14:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658360#M22663</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-14T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658361#M22664</link>
      <description>thank you for the quick reply. I appreciate it and It worked.</description>
      <pubDate>Sun, 14 Jun 2020 14:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dateformat/m-p/658361#M22664</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-06-14T14:59:39Z</dc:date>
    </item>
  </channel>
</rss>

