【发布时间】:2020-03-16 21:44:27
【问题描述】:
我的 Google 表格中有这样的格式:
14/11/2019 14:39
我已经尝试在 Google 表格中创建新格式,但没有成功。
我可以用这个方法把格式改成14/11/2019 14:39:00
// data in cell `A2`
=DATE(MID(A2,7,4),MID(A2,4,2),MID(A2,1,2))+TIME(MID(A2,12,2),MID(A2,15,2),"00")
那么,如何以更简单的方式将其转换为 DateTime?
【问题讨论】:
-
你想要什么日期时间格式?并从现有日期时间值或当前日期时间?
-
@HieuNguyenVan 已编辑,谢谢...
标签: datetime google-sheets string-formatting google-sheets-formula array-formulas