2012.04.01日期格式如何转换成2012-04-01

2024-12-26 18:27:12
推荐回答(2个)
回答1:

=TEXT(SUBSTITUTE(TRIM(A1),".",""),"00!-00!-00")

=TEXT(LEFT(A1,4)&MID(5,2)&RIGHT(A1,2),"00!-00!-00")
复制得出的值,选中A1,右键----选择性粘贴----数值----再删去公式

回答2:

=substitute(A1,".","- ") A1单元格内容为2012.04.01