Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Converting Dates to a Number for math function

Author  Topic 

kathunter
Starting Member

35 Posts

Posted - 2001-06-13 : 03:32:02
I am trying to create a value called "DaysLeft". This value will report how many days are left in the 60 day contract.

I wrote:

SQL= SELECT
(60 - ((CreationDate) - GetDate()) ) AS DaysLeft ...

But it returns a date. How can I get the number I am looking for?
   

- Advertisement -