FEEL

now

FEEL built-in function · FEEL date and time functions

now()

Returns the current date and time.

DMN 1.6 notes that now() and today() are not deterministic and recommends isolating decision logic that uses them in its own decision, so that tests can override it with a fixed value. In practice, pass the reference date in as an input variable wherever you can. The engine behind this site reads the clock once per evaluation, so every call in one expression sees the same instant.

Examples

now()
result depends on the evaluation moment Try it ↑
now() instance of date and time

Edge cases and null handling

now() - now()

The same instant within one evaluation.

today() = date(now())

Related functions

today · date and time

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).