<?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 extracting specific date/time information from date variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/extracting-specific-date-time-information-from-date-variable/m-p/40005#M8096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will want to use the DATEPART, TIMEPART, and DHMS functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datetm3 = dhms(datepart(datetm1),0,0,timepart(datetm2));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 13:28:19 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-11-02T13:28:19Z</dc:date>
    <item>
      <title>extracting specific date/time information from date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extracting-specific-date-time-information-from-date-variable/m-p/40004#M8095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 datetime variables (in datetime20 format). I would like to extract the date from the first datetime variable and the time from the second datetime variable and combine these extracted portions to form a third datetime variable. Is there a simple way to do this is SAS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extracting-specific-date-time-information-from-date-variable/m-p/40004#M8095</guid>
      <dc:creator>KMack</dc:creator>
      <dc:date>2011-11-02T13:15:24Z</dc:date>
    </item>
    <item>
      <title>extracting specific date/time information from date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extracting-specific-date-time-information-from-date-variable/m-p/40005#M8096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will want to use the DATEPART, TIMEPART, and DHMS functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datetm3 = dhms(datepart(datetm1),0,0,timepart(datetm2));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extracting-specific-date-time-information-from-date-variable/m-p/40005#M8096</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-02T13:28:19Z</dc:date>
    </item>
  </channel>
</rss>

