BusinessRuleDateExpressionInput
Input for creating date and time expressions with temporal comparisons and date-specific operations
input BusinessRuleDateExpressionInput {
number: Int
date: DateTime
string: String
operator: BusinessRuleDateExpressionOperators!
path: String
}
Fields
BusinessRuleDateExpressionInput.number
● Int
scalar
Numeric offset value for relative date calculations.
Used with operators that calculate relative dates:
- Days from today (positive for future, negative for past)
- Minutes from now for precise time calculations
- Day of week (1-7, Monday=1), day of month (1-31), month of year (1-12)
BusinessRuleDateExpressionInput.date
● DateTime
scalar
Absolute date value for direct date comparisons (used with 'before' and 'after' operators)
BusinessRuleDateExpressionInput.string
● String
scalar
Time value in 24-hour format (HH:MM:SS) for time-based operators like 'onTime', 'beforeTime', 'afterTime'
BusinessRuleDateExpressionInput.operator
● BusinessRuleDateExpressionOperators!
non-null enum
Temporal comparison operator defining how the date/time value should be evaluated against the target field
BusinessRuleDateExpressionInput.path
● String
scalar
Path to the field, can be used to add additional expressions and calulations on the field. Use $ to target the field's value. When omitted the field's value is used. The expression will be used on the left hand side of the operator. Can also be used to target a specific property in a complex expression's sub-expression Check https://gorules.io/docs/rules-engine/expression-language/date-and-time for options.