Wondering if anyone can help, we are trying to validate a Date Difference Expression we will be using within a Workflow to calculate days within a date range:
DateDiff ("w",GV_Start_Date, GV_End_Date)
We have tried it with integer and we are getting the same error.
Has anyone used similiar integrations/expressions?
The below forum post refers back to the expression we are trying to validate:
Any information would be greatly appreciated.
DateDiff requires 2 dates and will return a long value. Ensure that GV_Start_Date and GV_End_Date are Date Type variables and not string variables. Also, you are using Weeks and if the result is less than a week then I think DateDiff will return 0.
Phil RobsonSenior Director Support Americas
We have tried W & D as the value.... The string it is referring to is the DocuWare Global Variable that we are trying to send the value back to.... IF we push it to an integer we get the same error as pushing it back to a text field... DateDiff returns in a Long format which seems to be causing the problem rather than the GV's.... Any idea's how we could convert that long format to int/string?
Ok. Let's try to reassign the variable on the fly:
Will convert the LONG result to an integer.
to convert to a string.
You must be signed in to post in this forum.