EXCEL如何设置日期格式,将1997-12-24转换成19971224

2024-12-16 22:29:27
推荐回答(2个)
回答1:

选择单元格,单击右键,设置单元格格式
选择"自定义"
"类型"输入
yyyymmdd
确定

回答2:

如:2010-1-1 转换成20100101 及2010-01-01 均为文本格式
=TEXT(YEAR(A1),"0000")&TEXT(MONTH(A1),"00")&TEXT(DAY(A1),"00") 或=TEXT(YEAR(A1),"0000")&"-"&TEXT(MONTH(A1),"00")&"-"&TEXT(DAY(A1),"00")