- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:01 AM
HI,
I use BS rule to calculate data between two variables:
calDateDiff();
function calDateDiff(){
var startDate = current.variables.gdpr_received_date;
var endDate = current.variables.gdpr_actualcomp_date;
current.business_duration = gs.calDateDiff(startDate,endDate,false);
}
The first date is:
The second one is:
Why on ear SNow calculate this Business duration as:
Any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:21 AM
gs.dateDiff will calculate the total duration between two dates, wheras calDateDiff will calculate the Business Duration as it relates to some defined calendar (hence cal in the function name). If you want the total difference, use gs.dateDiff. If you want a business duration, adjust the calendar in your instance until it matches your business operation schedule. Note, there are distinct fields on all task records for Duration (calendar_duration) and Business Duration (business_duration).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:21 AM
gs.dateDiff will calculate the total duration between two dates, wheras calDateDiff will calculate the Business Duration as it relates to some defined calendar (hence cal in the function name). If you want the total difference, use gs.dateDiff. If you want a business duration, adjust the calendar in your instance until it matches your business operation schedule. Note, there are distinct fields on all task records for Duration (calendar_duration) and Business Duration (business_duration).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:36 AM
Hello,
Below thread has solution.
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 12:24 AM