<?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 have a question regarding date time in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593166#M170185</link>
    <description>&lt;P&gt;I have a SAS data set and the time&amp;amp;date column have vales like&amp;nbsp;&lt;SPAN&gt;42107.66744212963,&amp;nbsp;42109.458969907406 etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I convert these so that I can find out in what month the sale were the highest? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 18:16:57 GMT</pubDate>
    <dc:creator>meetagupta</dc:creator>
    <dc:date>2019-10-01T18:16:57Z</dc:date>
    <item>
      <title>have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593166#M170185</link>
      <description>&lt;P&gt;I have a SAS data set and the time&amp;amp;date column have vales like&amp;nbsp;&lt;SPAN&gt;42107.66744212963,&amp;nbsp;42109.458969907406 etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I convert these so that I can find out in what month the sale were the highest? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593166#M170185</guid>
      <dc:creator>meetagupta</dc:creator>
      <dc:date>2019-10-01T18:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593168#M170187</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288578"&gt;@meetagupta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a SAS data set and the time&amp;amp;date column have vales like&amp;nbsp;&lt;SPAN&gt;42107.66744212963,&amp;nbsp;42109.458969907406 etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I convert these so that I can find out in what month the sale were the highest? Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;looks like the time-part is decimal.&amp;nbsp; You can convert to SAS date-time using DHMS function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input x;
   datetime = dhms(x,0,0,0);
   put x= datetime=datetime22.;
   cards;
42107.66744212963
42109.458969907406
;;;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you know what dates those values should be.&amp;nbsp; They may need to be adjusted if the are UNIX dates or WINDOWS.&amp;nbsp; As you can see these years do look quite right. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;x=42107.667442 datetime=14APR2075:16:01:07
x=42109.45897 datetime=16APR2075:11:00:55
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593168#M170187</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-01T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593171#M170189</link>
      <description>&lt;P&gt;Unless you are expecting a date/time value on January 1, 1960, these are not SAS date/time values.&lt;/P&gt;
&lt;P&gt;Unless you are expecting a date in 2075, these are not SAS date values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes, transferring these values from other software (perhaps Excel?) produces date/time values that don't work in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see the date/time, this code will work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	y=42107.66744212963;
	put y datetime18.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593171#M170189</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-01T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593173#M170191</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288578"&gt;@meetagupta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a SAS data set and the time&amp;amp;date column have vales like&amp;nbsp;&lt;SPAN&gt;42107.66744212963,&amp;nbsp;42109.458969907406 etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I convert these so that I can find out in what month the sale were the highest? Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My guess is this data started in Excel. If the first value is supposed to be around 15 Apr 2015 then my guess is pretty good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might suggest going back to the step where you brought the data into SAS and show us that. Likely something in the process missed that was supposed to be a date and time value.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593173#M170191</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-01T18:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593176#M170193</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Customer ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Time stamp&lt;/TD&gt;&lt;TD&gt;Product Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;147&lt;/TD&gt;&lt;TD&gt;4/13/15 16:01&lt;/TD&gt;&lt;TD&gt;Cricket Bat MRF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;151&lt;/TD&gt;&lt;TD&gt;4/15/15 11:00&lt;/TD&gt;&lt;TD&gt;Badminton Racket Yonex&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of the excel file and I wrote the code to import it into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME REFFILE '/home/u42075552/sasuser.v94/Transactional_data.xlsx';&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;OUT=WORK.IMPORT2;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;SHEET="Input";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE task1.query AS&lt;BR /&gt;SELECT customer_id, time_stamp , product_name&lt;BR /&gt;FROM WORK.IMPORT2;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593176#M170193</guid>
      <dc:creator>meetagupta</dc:creator>
      <dc:date>2019-10-01T18:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593178#M170194</link>
      <description>&lt;P&gt;Based on the extra info you provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;106  data _null_;
107     input x;
108     adj = sum(x,'30dec1899'd);
109     datetime = dhms(adj,0,0,0);
110     put x= adj= datetime=datetime22.;
111     cards;

x=42107.667442 adj=20191.667442 datetime=13APR2015:16:01:07
x=42109.45897 adj=20193.45897 datetime=15APR2015:11:00:55
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593178#M170194</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-01T18:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593213#M170207</link>
      <description>&lt;P&gt;I think this is is more accurate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input x;
   adj = intnx('year',x,-60,'s');
   datetime = dhms(adj,0,0,0);
   put X= ADJ= DATETIME=datetime22.;
   cards;
42107.66744212963
42109.458969907406
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42107.667442 adj=20192.667442 datetime=14APR2015:16:01:07&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42109.45897 adj=20194.45897 datetime=16APR2015:11:00:55&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 21:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593213#M170207</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-01T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593217#M170211</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288578"&gt;@meetagupta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Customer ID&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;Time stamp&lt;/TD&gt;
&lt;TD&gt;Product Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;147&lt;/TD&gt;
&lt;TD&gt;4/13/15 16:01&lt;/TD&gt;
&lt;TD&gt;Cricket Bat MRF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;151&lt;/TD&gt;
&lt;TD&gt;4/15/15 11:00&lt;/TD&gt;
&lt;TD&gt;Badminton Racket Yonex&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an example of the excel file and I wrote the code to import it into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME REFFILE '/home/u42075552/sasuser.v94/Transactional_data.xlsx';&lt;/P&gt;
&lt;P&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;OUT=WORK.IMPORT2;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;SHEET="Input";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE task1.query AS&lt;BR /&gt;SELECT customer_id, time_stamp , product_name&lt;BR /&gt;FROM WORK.IMPORT2;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you have had one issue with XLSX and proc import I might suggest the following steps:&lt;/P&gt;
&lt;P&gt;1) change the appearance in Excel of the column to include a 4 digit year and as many seconds or fractions thereof that you may want to actually use. Hint: if you don't need fractions of a second&amp;nbsp;don't include them.&amp;nbsp;You may need to play with the cell formats a bit.&lt;/P&gt;
&lt;P&gt;2) Use the File Save As to create a CSV version of the file.&lt;/P&gt;
&lt;P&gt;3) Then use Proc Import to read that CSV, changing the dbms to CSV&lt;/P&gt;
&lt;P&gt;4) add a GUESSINGROWS=MAX; statement to the Proc import . This will examine more rows of the data before assigning things like variable type and length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may have a better chance of getting the import to correctly import a datetime value into a native SAS datetime value and assign an appropriate datetime format.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 22:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593217#M170211</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-01T22:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593237#M170224</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;You are displaying a date as a datetime and end up with 01JAN1960.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 01:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593237#M170224</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-02T01:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593289#M170247</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;You are displaying a date as a datetime and end up with 01JAN1960.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes because the original problem statement said "I have a SAS data set and the&lt;STRONG&gt; time&amp;amp;date column&lt;/STRONG&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 10:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593289#M170247</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-02T10:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593298#M170250</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think this is is more accurate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input x;
   adj = intnx('year',x,-60,'s');
   datetime = dhms(adj,0,0,0);
   put X= ADJ= DATETIME=datetime22.;
   cards;
42107.66744212963
42109.458969907406
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42107.667442 adj=20192.667442 datetime=14APR2015:16:01:07&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42109.45897 adj=20194.45897 datetime=16APR2015:11:00:55&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288578"&gt;@meetagupta&lt;/a&gt; states in their follow-up post that the dates in EXCEL are.&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;TABLE style="background-color: transparent; border-collapse: collapse; border-spacing: 0px 0px; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;
&lt;TBODY style="box-sizing: border-box;"&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;
&lt;P style="box-sizing: border-box; line-height: 21.33px; padding: 0px; margin: 0px;"&gt;Customer ID&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Time stamp&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Product Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;147&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;4/13/15 16:01&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Cricket Bat MRF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;151&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;4/15/15 11:00&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Badminton Racket Yonex&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Oct 2019 11:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593298#M170250</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-02T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593299#M170251</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think this is is more accurate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input x;
   adj = intnx('year',x,-60,'s');
   datetime = dhms(adj,0,0,0);
   put X= ADJ= DATETIME=datetime22.;
   cards;
42107.66744212963
42109.458969907406
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42107.667442 adj=20192.667442 datetime=14APR2015:16:01:07&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;x=42109.45897 adj=20194.45897 datetime=16APR2015:11:00:55&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288578"&gt;@meetagupta&lt;/a&gt; states in a follow-up post that the dates in EXCEL are&lt;/P&gt;
&lt;TABLE style="background-color: transparent; border-collapse: collapse; border-spacing: 0px 0px; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;
&lt;TBODY style="box-sizing: border-box;"&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;
&lt;P style="box-sizing: border-box; line-height: 21.33px; padding: 0px; margin: 0px;"&gt;Customer ID&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Time stamp&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Product Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;147&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;4/13/15 16:01&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Cricket Bat MRF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;151&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;4/15/15 11:00&lt;/TD&gt;
&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; line-height: 20px; word-break: normal; padding: 2.5px 5px 2.5px 5px; margin: 0px; border: 0.5px solid #eaeaea;"&gt;Badminton Racket Yonex&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the issue is due to EXCEL thinking that 1900 was a leap year. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 11:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593299#M170251</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-02T11:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593371#M170272</link>
      <description>&lt;P&gt;The 1900 leap year issue is included in data_null_'s solution by the use of the 30th of December in the calculation to change the date values instead of the 31st of December.&amp;nbsp; If the dates are actually before March 1, 1900 then you might need remove add back that extra day.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593371#M170272</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-02T13:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: have a question regarding date time in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593572#M170365</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I think the issue is due to EXCEL thinking that 1900 was a leap year. &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Oh wow, Fair enough, I didn't know of this bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 23:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/have-a-question-regarding-date-time-in-sas/m-p/593572#M170365</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-02T23:29:58Z</dc:date>
    </item>
  </channel>
</rss>

