Monday 17 September 2012

TSQL: Create Date

CAST(
CAST(2012 AS varchar) + '-' +
CAST(9 AS varchar) + '-' +
CAST(17 AS varchar) AS DATETIME)

No comments:

Post a Comment