Page 1 of 1

DateAdd bad result

Posted: Sun Jan 06, 2019 3:44 pm
by WellWisher
I need to add 2 dates:

Code: Select all

DateAdd("H",0,"{TIME}")
but in the action "Evalute" error "Bad result format" and right answer.
Also Variable "{LastErrorDescription}" not show result, but in the log show " Bad result format: #3:35:59 PM#"
How to pull out the answer in a variable?

Re: DateAdd bad result

Posted: Sun Jan 06, 2019 9:55 pm
by Oleg
Use expression

Code: Select all

CStr(DateAdd("H",0,"{TIME}"))
It seems you are using Evaluate action. This is deprecated.
You can use VB Evaluate action. It can calculate the expression

Code: Select all

DateAdd("H",0,"{TIME}")
without problem

Re: DateAdd bad result

Posted: Sun Jan 06, 2019 10:20 pm
by WellWisher
Thanks you very much, both result is worked!