Hello,
I am using the expression
DateDiff(DateInterval, Date1, Date2)
in an if activity in order to check a period and a message appears:
DateDiff is a type and can not be used as an expression
What could I do?
Thanks a lot!
Hello,
I am using the expression
DateDiff(DateInterval, Date1, Date2)
in an if activity in order to check a period and a message appears:
DateDiff is a type and can not be used as an expression
What could I do?
Thanks a lot!
Can you not take one datetime variable away from the other to pre-calculate the period? If not (I havenβt checked), I would probably do it this way; although there is probably a more straightforward way.
Compare_Dates.xaml (9.9 KB)
Hi,
what is the DateInterval, Please refer below statements to get difference between dates,
Hope this will help you to understand.
DateDiff(βsβ, Now, Now + 1) =86400
DateDiff(βnβ, Now, Now + 1) =1440
DateDiff(βhβ, Now, Now + 1) =24
DateDiff(βdβ, Now, Now + 1) =1
DateDiff(βmβ, Now, Now + 60) =2
DateDiff(βyyyyβ, Now, Now + 365) =1
DateDiff(βyβ, Now, Now + 10) =10
DateDiff(βqβ, Now, Now + 365) =4
DateDiff(βwwβ, Now, Now + 365) =52
DateDiff(βwβ, Now, Now + 365) =52
DateDiff(βdβ, Now + 1, Now) =-1