DECLARE @a datetime SET @a = '2011-7-21' SELECT --DATEAD...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Poker Meta

Q&A about the site for serious players and enthusiasts of poker

DECLARE @a datetime
SET @a = '2011-7-21'

SELECT --DATEADD(YEAR, DATEDIFF(YEAR, '19000701', @a), '19000701'),
cast(

DATEDIFF(month, '19000701', @a)  / 12


as varchar(max))+ ' abc'

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results