Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将此字符串“Mon, 01 Apr 2013 10:00:00 GMT”转换为 sql server 2008 中的日期时间,但由于 GMT,我无法转换它
这将做:
DECLARE @Date VARCHAR(30) SET @Date = 'Mon, 01 Apr 2013 10:00:00 GMT' SELECT CONVERT(DATETIME,SUBSTRING(@Date,5,21),113)