Select LTrim(Year(X))+(Case when Month(X)>=10 then LTrim(Month(X)) else '0'+LTrim(Month(X)) end ) +(Case when Day(X)>=10 then LTrim(Day(X)) else '0'+LTrim(Day(X)) end ) as NewValuefrom (select Convert(DateTime,substring(日期,1,4)+'-'+substring(日期,5,2)+'-'+substring(日期,7,2))+10 as Xfrom flowtranslog ) z