- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2022 12:50 AM
We have two date/time type fields and the requirement is to capture the difference of these date/time fields into a duration type field . I have written business rule and i am getting subtraction value in seconds or days 00:00:00 format using script but if i set that value to duration type field then it is not working . Sometimes i am getting some 1970-01-01 date with the difference value added to that date. Please advise.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2022 01:49 AM
instead of return dur ; use below line
current.<duration_field_name> = dur;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2022 04:46 AM
Thanks Suvro