DECLARE @shortdate VARCHAR(10) --needed to successful conversion SET DATEFORMAT dmy; --your input string SET @shortdate = '04/13' --valid date SELECT CONVERT(DATETIME, '01/' + @shortDate) AS myDate
SELECT CONVERT(DATETIME, '01/04/13', 3)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)