例如2022-10 减去 2022-01,结果是9。有什么办法实现吗,感谢.
DATESUBDATE函数就可以
DATESUBDATE("2022-01-12","2021-12-12","d") 相差天数
DATESUBDATE("2022-01-12","2021-12-12","h") 相差小时。。
DATEDIF("2022-01"+"-01","2022-10"+"-01","M")
如果你是两个参数就用如下
DATEDIF($cs+"-01",$cs2+"-01","M")