sql server日期类型只返回年月日,而不包含时分秒 得DateTime类型数据中的日期(仅年月日)select convert(varchar(10),columnname,120) from tablename