Compare date fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 05:50 AM
I have one date field on “dmn_demand” table and other on “dmn_demand_task” table.
The field “Planned Start Date” on Demand table should not be after “Due date” on Demand Task table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 12:36 AM
@Taaha M , Did my answer helped you in any way?
If my answers given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 10:06 AM
Hi @Taaha M , Hope you are doing well. Did my answer helped you??
If my answers given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2025 10:48 PM
Hi @Taaha M , Hope you are doing well, Did my solution helped you in any way?
If my answers given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 12:05 AM
Hi @Taaha M ,
You Can Compare Two Date Fields in a Business Rule like this-
var plannedStart = current.demand.planned_start_date; // From parent Demand
var dueDate = current.due_date; // From current Task
if (plannedStart && dueDate && plannedStart > dueDate) {
gs.addErrorMessage('Planned Start Date cannot be after Due Date.');
current.setAbortAction(true);
}
If you found my response helpful, please mark it as helpful and accept it as the solution.
Thank you
Nawal Singh
