Reputation: 23
I have a date/Time field in my LN doc. The date stored as "11/09/2014 11:04:25 ZE4". I want to patch the same with 11/09/2013 11:04:25 ZE8. How to do it through formula language ??
Upvotes: 0
Views: 680
Reputation: 121
text := @LeftBack(@Text(myDateField; "D0T0Z2"); " ");
date := @TextToTime(@Left(text; " "));
time := @TextToTime(@Right(text; " "));
result := @TimeMerge(date; time; "Z=-8");
Upvotes: 1