Answers for "msg 241, level 16, state 1, line 119 conversion failed when converting date and/or time from character string. completion time: 2021-09-08t16:33:44.2432994+05:30"

SQL
0

Msg 241, Level 16, State 1, Line 12 Conversion failed when converting date and/or time from character string.

DECLARE @Value nVarchar(MAX)='2016-03-01 00:00:00.000000'
SELECT CONVERT(DATETIME,LEFT(@Value,23),101)
Posted by: Guest on November-11-2020

Code answers related to "msg 241, level 16, state 1, line 119 conversion failed when converting date and/or time from character string. completion time: 2021-09-08t16:33:44.2432994+05:30"

Code answers related to "SQL"

Browse Popular Code Answers by Language