日期:2014-05-18  浏览次数:20845 次

sql server中 把字符串转化为日期 的函数是什么
字符串格式   2007-09-18


------解决方案--------------------
select cast( '2006-07-01 ' as datetime)
------解决方案--------------------
Convert(datetime, '2006-7-1 ',120)