Get the Current Date and Time

To insert the system date and time into a rule, you use the Current Date Time function. The Current Date Time function returns the system datetime at the start of the session.

For example, the following rule:

the date and time of the investigation = CurrentDateTime()

will infer the date and time of the investigation to be 12/11/2017 15:37:00 if the rule is run on 12/11/2017 at 15:37:00.

The current date and time can also be used as an input date in a calculation. For example:

the date and time the task is due = the date 2 weeks after the current date time

This rule will infer the date and time the task is due to be 17/06/2019 04:12:17 if the rule is run on 03/06/2019 at 04:12:17. Here the current date and time is the input date in an Add Weeks function.