sDate = Format(Date, "dddd dd") &
Mid("thstndrdth", (DatePart("d", Date) Mod 10) * 2 + 1, 2) & " " &
Format(Date, "mmmm yyyy")
Example - Saturday 21st August 2010
MonthName(3) would return 'March' MonthName(3, TRUE) would return 'Mar' MonthName(7, FALSE) would return 'July'
本文详细介绍了如何使用Excel公式格式化日期,并展示了如何通过日期部分来获取月份名称及其缩写,包括不同情况下的返回值变化。

被折叠的 条评论
为什么被折叠?



