29.04.2016 23:07 is equal to 42487.9631944444 The query is converting float to datetime is SELECT CAST(42487.9631944444 as dateTime) and converting datetime to float is Select (CONVERT(float, CAST('04-29-2016 23:07 ' AS DATETIME)))
Msg 8115, Level 16, State 2, Line 5 Arithmetic overflow error converting expression to data type datetime.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)