转换长日期为短日期

select replace(convert(varchar(10),日期字段,120),'-0','-') from tb
原文地址:https://www.cnblogs.com/moonvan/p/422960.html