[英]Exel - Convert date from “month day, year” to DD/MM/YYYY
Is there an easy way to convert a date such as: 是否有一种简单的方法来转换日期,例如:
Dec 21, 2019 2019年12月21日
to: 至:
21/12/2019 2019年12月21日
The output of CDate
is dependent on the regional or system-defined settings of the user's computer. 的输出CDate
是依赖于用户的计算机的区域或系统定义的设置。 To force the format regardless of these settings, it is preferrable to use the Format
function : 要强制格式不管这些设置,它是preferrable使用Format
功能 :
Format("Dec 21, 2019", "dd/mm/yyyy")
You can use below formula and then change the date format 您可以使用下面的公式,然后更改日期格式
=DATEVALUE(TEXT("Dec 21, 2019","dd/mm/yyyy"))
Hope it helps! 希望能帮助到你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.