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
how to create these buttons.
Can I install an external fibre channel tape drive onto a traditional non-fibre channel server by adding a fibre channel board in the server?
How do I add a Folder to Windows Installer without having to add each individual file
Workstation Primary Group ID set as Domain Controller
HP Proliant DL360
fruit vitamin content same in ca and fl?
use php to create a xml tree and iterate over that tree in jquery
How could i distribute internet to users connected to windows server 2008 R2 ????
Having mail server go out a specific SonicWALL interface?
Retrieve value of calculated control on a subform