<?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: Need assistance modifying a date field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118200#M24397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just create the new variable as datepart(t1.birthdate) to get a SAS date variable and should work with between and date literals. The "put" is what made it a string result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 19:27:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-08-21T19:27:07Z</dc:date>
    <item>
      <title>Need assistance modifying a date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118199#M24396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have a date field that includes hours/minutes/seconds (e.g., '10SEP2012:0:0:0')dt).&amp;nbsp; I need the data to include only day/month/year (e.g., '10SEP2012'd instead of '10SEP2012:0:0:0')dt.&amp;nbsp; I created a new field based on the original date field using a computed column: put(datepart(t1.BirthDate), date9.).&amp;nbsp; The data &lt;STRONG&gt;&lt;EM&gt;looks&lt;/EM&gt;&lt;/STRONG&gt; right, but now I cannot filter using the BETWEEN function because the dates are in a character format.&amp;nbsp; There has got to be a better and different way to get rid of the hours/minutes/seconds and keep the date in a format that can be filtered as needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks for ideas . . .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;William &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 19:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118199#M24396</guid>
      <dc:creator>LiamRowan</dc:creator>
      <dc:date>2013-08-21T19:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance modifying a date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118200#M24397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just create the new variable as datepart(t1.birthdate) to get a SAS date variable and should work with between and date literals. The "put" is what made it a string result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 19:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118200#M24397</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-08-21T19:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance modifying a date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118201#M24398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to work perfectly.&amp;nbsp; Thanks so much, really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 19:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-assistance-modifying-a-date-field/m-p/118201#M24398</guid>
      <dc:creator>LiamRowan</dc:creator>
      <dc:date>2013-08-21T19:32:44Z</dc:date>
    </item>
  </channel>
</rss>

