Question
Difference between now() and today() ?
Difference between now() and today() ?
A
Anonymous
March 22, 2026
140
Answer
The difference is the time component, the data type, and how each one relates to the time zone. This applies in Appian and in most SQL databases.
now()
- Returns the current date and time
- Data type: DateTime
- Time zone aware: it uses the system or user time zone
now() => 2026-03-22 14:35:20
Use now() when you need an exact timestamp: logging, audit trails, or comparing against other DateTime values.
today()
- Returns the current date only
- Data type: Date
- Indirectly time zone dependent: the date comes from the system time zone, but no time is stored
today() => 2026-03-22
Use today() when only the date matters: filtering records by date, or daily reports.
A common mistake
Comparing now() with today() directly fails, because now() carries a time and today() is midnight (00:00:00):
now() = today() /* false: the time part differs */
Compare the date part instead:
date(now()) = today()
JuniorExpressions