0

I have a varchar field in where I have the following value: 03/09/2012 11:40:25 a.m.

I need to convert this string in datetime. When I try to apply CONVERT but I get error.

Thanks in advance.

4

1 回答 1

3

假设正确的DATEFORMAT顺序是导致问题的时期;

convert(datetime, replace('03/09/2012 11:40:25 a.m.', '.', ''))
于 2012-09-03T16:19:57.760 回答