Rules for Pastoral care types and Presets

Modified on Fri, 20 Mar at 4:13 AM

Operators

+

Adds a value to the date/time variable

-

Subtracts a value from the date/time variable

<

Assigns a value to the date/time variable.


Keywords

now, today

Sets the variable to the actual date/time.
May be used with the assignment operator.

monday, sunday

The nearest specified weekday that is not in the past, including today.
May be used with the assignment operator.

upcoming

Evaluates if the variable time is in the past and if so, adds 1 day to the variable date.


Values

y

Years: a number of years.
May be used with addition, subtraction and assignment operators.
When used as an assignment, must be a full four-digit year for predictable results.

z

Months: a number of months.
May be used with addition, subtraction and assignment operators.
When used as an assignment, January is 1, December is 12.

w

Weeks: a number of weeks.
May be used with the addition and subtraction operators.

d

Days: a number of days.
May be used with the addition, subtraction and assignment operators.

h

Hours: a number of hours.
May be used with the addition, subtraction and assignment operators.

m

Minutes: a number of minutes.
May be used with the addition, subtraction and assignment operators.

l

Literal: A datetime literal.

<d<z<h<m = assign day, assign month, assign hour, assign minute=

<20d<2<15h<30m = 20th Feb 3:30 pm


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article