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
true
Try it ↑
Edge cases and null handling
today() = date(now())
true
Try it ↑
Part of FEEL date and time functions: date arithmetic, the two kinds of duration, time zones, and every temporal function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).