Maybe I'm just crazy... So, with SPD I can add any time unit to a date and put that into a variable, but I can't seem to find anything that will let me calculate the difference between two dates. "Do Calculation" only lets me pick from numeric values. Am I missing something here? Seems like something which should be obvious.
问问题
25924 次
4 回答
2
日期比较“开箱即用”不可用,但有一些解决方法。
也许这篇文章:如何在 SharePoint Designer 工作流中执行日期计算和构造动态字符串提供了答案?
此处提供了更多相关信息:修改 SharePoint Designer 工作流中的日期格式
于 2009-12-18T00:02:02.723 回答
0
您可以使用 SharePoint 列表的函数DATEDIF来设置列值,然后在工作流中使用它。我敢肯定,这将帮助那里的人-
于 2011-03-30T06:44:15.657 回答
0
从 SharePoint 2013 开始,您可以使用“查找日期之间的间隔”操作。
Find Interval Between Dates Calculates the time interval in minutes, hours, or days between two dates and stores the output in a variable.
https://msdn.microsoft.com/en-us/library/office/jj164026.aspx
于 2016-09-07T11:50:08.380 回答
-1
字符串和日期操作以及计算是 SharePoint Designer 工作流中的一个难题。Colin 提到的链接很好,但您可能还需要考虑将 C# 或 vb.net 代码直接嵌入到您的 SharePoint Designer 工作流中(无需 Visual Studio)。
我编写了一个组件,允许您执行此操作,并在以下 URL 上发布了有关它的博客:
http://www.muhimbi.com/blog/2009/12/embed-c-or-vb-code-directly-in.html
于 2009-12-22T10:04:07.797 回答