Use CAST with following parameters:
DateDate
select Cast('2017-10-11 14:38:50.440'540' as date) Output: 2017-10-11
DatetimeDatetime
select Cast('2017-10-11 14:38:50.440'540' as datetime) Output: 2017-10-11 14:38:50.440540
SmallDatetimeSmallDatetime
select Cast('2017-10-11 14:38:50.440'540' as smalldatetime) Output: 2017-10-11 14:39:00
DatetimeOffsetNote this method rounds to whole minutes (so you lose the seconds as well as the milliseconds)
DatetimeOffset
select Cast('2017-10-11 14:38:50.440'540' as datetimeoffset) Output: 2017-10-11 14:38:50.44000005400000 +00:00
Datetime2Datetime2
select Cast('2017-10-11 14:38:50.440'540' as datetime2) Output: 2017-10-11 14:38:50.44000005400000