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.
你好,
请看我上面的表格,我想用 getdate()-1 和 getdate()-2 替换表格标题(昨天和两天前)以提供日期本身。这可能吗?
您可以在以下情况下使用表达式:
昨天
=format(dateadd("d", -1, today()), "MMMM dd,yyyy")
两天前
=format(dateadd("d", -2, today()), "MMMM dd,yyyy")