Thursday, August 1, 2013

how to get the year part from a date

Query
SELECT YEAR(GETDATE())

Return value
2014

No comments:

Post a Comment