<?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 How to write date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851104#M37314</link>
    <description>&lt;P&gt;The below code is throwing an error as below:&lt;/P&gt;&lt;PRE class=""&gt;Invalid date/time/datetime constant '01-09-2022:00:00:00am'dt.&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sql;
create table dummy as 
Select * from MR
where 'Date Of approval'n GE '01-09-2022:00:00:00am'dt. AND 'Date Of approval'n LE '30-11-2022:00:00:00am'dt.;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How should I proceed?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2022 06:56:44 GMT</pubDate>
    <dc:creator>Kirito1</dc:creator>
    <dc:date>2022-12-26T06:56:44Z</dc:date>
    <item>
      <title>How to write date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851104#M37314</link>
      <description>&lt;P&gt;The below code is throwing an error as below:&lt;/P&gt;&lt;PRE class=""&gt;Invalid date/time/datetime constant '01-09-2022:00:00:00am'dt.&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sql;
create table dummy as 
Select * from MR
where 'Date Of approval'n GE '01-09-2022:00:00:00am'dt. AND 'Date Of approval'n LE '30-11-2022:00:00:00am'dt.;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How should I proceed?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 06:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851104#M37314</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2022-12-26T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851112#M37315</link>
      <description>&lt;P&gt;The date in a datetime literal must be written in the same DATE9. format like a date literal, e.g. '01jan1960:00:00:00'dt. Do not use am/pm, but 24-hour notation.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 08:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851112#M37315</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-26T08:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to write date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851113#M37316</link>
      <description>So, does that mean its a limitation for me as the data I have is in ddmmyy format. So, I first have to convert that data in date9 format in excel and then use it as my data.&lt;BR /&gt;That's really tedious.&lt;BR /&gt;BTW thanks for the solution kindly suggest if there are any other alternative.</description>
      <pubDate>Mon, 26 Dec 2022 09:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851113#M37316</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2022-12-26T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851114#M37317</link>
      <description>&lt;P&gt;If you have SAS datetime values, the display format is irrelevant, as the underlying raw values are counts of seconds, starting at 1960-01-01T00:00:00.&lt;/P&gt;
&lt;P&gt;If you do not have SAS datetimes, but character strings, these must be converted first. This should be done when the data is imported into SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 09:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-write-date/m-p/851114#M37317</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-26T09:21:09Z</dc:date>
    </item>
  </channel>
</rss>

