更新时间:2023-02-06 14:20:14
SELECT CONVERT(char(10), GetDate(),126)
限制您不想要的小时部分的 varchar 排版的大小.
Limiting the size of the varchar chops of the hour portion that you don't want.
如何从 TSQL 日期时间字段中获取 YYYY-MM-DD 格式的日期?
如何将CurrentCulture格式的日期时间转换为公历日期时间?
Querry-如何从日期时间格式获取日期
Java:如何获取ISO 8601 SECOND格式的当前日期
js如何取当前日期时间/格式为:yyyy-mm-dd hh:mm:ss
如何比较C#中hh:mm:ss格式的日期时间?