Jump to content

Date Difference betwee columns


nomadsoul

Recommended Posts

Hi all,

I've found many explanations on how to calculate the difference between two individual dates i.e:

DATEDIFF (day, ‘7/8/2009’, ‘8/14/2009’)   AS Result 

]

 

But nothing on how to calculate the difference between two date fields i.e:

SELECT DATEDIFF(ShippedDate,RequiredDate) AS NewCalculatedField

 

I tried but won't work, can it be done?

-tried with and without parenthesis

Link to comment
https://forums.phpfreaks.com/topic/246676-date-difference-betwee-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.