Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
JP
Last activity: 1 Mar 2016 9:28 EST
7.1.9 @DateTime.TimeDifference returns invalid date time string that can not be assigned to a DateTime property
I was trying to set a DateTime type property using declare expression like below, however the expression fails because @DateTime.TimeDifference function returns invalid date time string.
.ToDate [email protected](.FromDate,7,0,0,0)
FAIL
Step Status Info
** Invalid datetime format/Invalid datetime "Fri 2016/03/04 22:31:00 GMT+00:00"
Is this a known issue? or is it designed to return a date time string that can not be directly assigned to a DateTime type property?