Link to home
Start Free TrialLog in
Avatar of RTCexpert
RTCexpert

asked on

TSQL - Length of days between two dates

I have a table that contains dates when the record was created.  Using a T-SQL query how would I be able to figure out how many days have passed since that record was created.  For example GETDATE() - RecordCreatedDate = Number of Days.

Any help is appreciated.  Thanks!
Avatar of BrandonGalderisi
BrandonGalderisi
Flag of United States of America image

dateadd(d, recordcreated,getdate())
ASKER CERTIFIED SOLUTION
Avatar of BrandonGalderisi
BrandonGalderisi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial