you have several options
- you can use Math action.
note however, that this returns difference in seconds, so you might need to converts it to days
- or you can use set variable action and use inline function DateDiffDays to do calculation.
problem here is that set variable action allows to define formula only if target variable is of string type. so for further comparisons you might need to convert numeric variable
- or you can use ConvertValue action.
this should be straightforward and return day difference into numaric variable
date difference
many thanks for your answer
, if that helped you to resolve your issue, please mark the answer correct
Hi,
i tested with function "convert value", i get error messages
with this variable
but after running i have this error message
i have try with integer and number, same result.
Do i have to convert the date before?
maybe someone can help
try to enclose date variables with {TextStart}/{TextEnd} as in my example
can you check what's your configuration for "Always follow web settings" in User >> My Settings >> My Language And Region >> Region
You can format the dates using ISO template: yyyy-MM-dd hhss
it's not about one or the other locale.
it's specifically about the "Always follow web settings" option.
I mean this setting
if you do not have it checked on, no inline function that expects date type input parameter works in workflow.
regardless of locale you have configured for site or user, or what culture you set in workflow action (where available)
you can see it confirmed as "feature" by nintex here - fn-FormatDate doesn't work with specific regional settings