Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Query for difference between dates

$
0
0

I know I can use the DATEDIFF

How can I write it if StartDate and EndDate are in these formats?

StartDate: 2006-09-20 00:00:00.000

EndDate:   2013-09-20 18:20:53.000

I want to find the number of days between dates of dates in the two columns


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>