Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个默认值,即当前年月。今天我的表情是这样的:
[Date Product Confirmed].[Date].[Yearmd].&[2013-03]
我会,或者当然,想让最后一部分动态化:&[2013-03].
&[2013-03]
有什么建议么?
你可以像这样得到当前的年份和月份
=Format(Now(), "yyyy-MM")
基本上我使用的是当前日期Now() ,然后我将其格式化为 YYYY-MM
Now()
你可以试试这个:
="[Date Product Confirmed].[Date].[Yearmd].&[" & Cstr(Format(now(),"yyyy-MM")) &"]"