joeblogs.ie
To get the difference in days between two dates use the DateDiff function.
Example:
select datediff(d, mydob , getdate()) as [My Age in Days]
http://msdn.microsoft.com/en-us/library/aa258269(SQL.80).aspx
Tags: t-sql, t-sql dates
SQL Server
Related posts
Powered by BlogEngine.NET 1.5.0.7 Theme by Mads Kristensen