如何在逻辑应用程序中添加月份

发布于 2025-01-15 23:20:26 字数 400 浏览 4 评论 0原文

我阅读了日期时间逻辑应用参考,但它没有 AddMonths 函数,如下所示:

https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#date-and-time-functions

目前使用的函数是 AddDays (-30) 并于 2022 年 3 月 1 日“失败”。 它达到了 2022-01-30,因为 2022 年 2 月只有 28 天。

我该如何解决?

I read the date-time Logic App reference, but it has no AddMonths function, as you can see here:

https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#date-and-time-functions

Currently the function used is AddDays(-30) and it "failed" in 2022-03-01.
It reached 2022-01-30 because February/2022 has just 28 days.

How can I solve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静若繁花 2025-01-22 23:20:26

有一个名为 subtractFromTime 的函数,它工作得很好。

There is function called subtractFromTime, it works fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文