Microsoft
Software
Hardware
Network
Question : Help on calculating days in SQL script
The following script:
select (convert(numeric(17,2),dat
ediff(y,st
rtdate,get
date()))) from table
where the column strtdate value is 7/13/1988, the result that gives is:
8031.00 days
However, when I use Excel to cal the difference between 7/13/1988 and 7/9/2010, that value is 8030.00 days
Am I missing something from my script? I have to compare the SQL results with the Excel result and they are different
Answer : Help on calculating days in SQL script
I ran that in Excel 2007, and it worked fine :)
Are you regional settings for dates set at m/d/yyyy (as mine are), or d/m/yyyy?
BTW, I get the same answer if I use =TODAY()-"13 Jul 1988"
Random Solutions
Should I use HTTPWebRequest or TCP sockets to retrieve XML from HTTPS link
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
Access 2007, form datasheet view, change display property of an element based on another element in the record
New ESXi 4 Host (not responding) in vCenter
return double array in Delphi call to c++
I would like to have 2 links on a page and then use Jquery to fade in a external page from either link.
exchange 2010 are email addresses case sensitive?
Auto file move and rename
Asterisk 1.4 assigning outbound routes based on extension
football goal details