General information
Forum:
Microsoft SQL Server
Hi,
declare @dot datetime
SET @dot = '03/21/1984'
Select Datediff(Month, @dot, getdate())/12 as age
Select Datediff(Day, @dot, getdate())/365 as age
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only