# endOfDay() in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/endofday/

endOfDay() stands for the end of the current day. It is the usual upper bound for "due today or earlier" queries. An offset such as "+1" moves it to tomorrow or further.

## Syntax

```
endOfDay()
endOfDay("inc")
```

## Arguments

- `inc` (optional: yes): Optional offset in the form (+/-)nn(y|M|w|d|h|m). With no unit it counts days, so "+1" is the same as "+1d". With no sign, plus is assumed.

## Works with

- Fields: Created, Due, Resolved, Updated, custom Date or Date/Time fields
- Operators: =, !=, >, >=, <, <=, and inside WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED predicates
- Not with: ~, !~, IS, IS NOT, IN, NOT IN

## Examples

```
duedate <= endOfDay() AND statusCategory != Done ORDER BY duedate ASC
```

Everything due today or already late and still open, most overdue first. This is the list to read at the start of the day. Run on Jira Cloud on 2026-11-29.

```
duedate = endOfDay("+1")
```

Work due tomorrow, a heads-up list for the afternoon. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND duedate >= startOfDay() AND duedate <= endOfDay("+3") ORDER BY duedate ASC
```

The next three days of deadlines in one project. Combined with startOfDay() so that late items do not mix in. Run on Jira Cloud on 2026-11-29.

```
duedate <= endOfDay() AND assignee is EMPTY AND statusCategory != Done
```

Due work that nobody owns. Each result needs an assignee today. Run on Jira Cloud on 2026-11-29.

```
duedate < endOfDay("+1") AND duedate >= startOfDay() AND statusCategory != Done
```

Due today only, built with an exclusive upper bound at the end of tomorrow. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The docs give `due < endOfDay()` as "due by the end of today". It leaves out work due today, because a due date has no time. `duedate <= endOfDay()` includes it, and `duedate = endOfDay()` matches only today (checked on Jira Cloud, November 2026).
- On created or updated, which do have a time, `< endOfDay()` is fine. The difference only shows on date-only fields.
- A bad offset is rejected with a clear message: `endOfDay("+1x")` gives "Duration for function 'endOfDay' should have the format (+/-)n(yMwdm), e.g -1M for 1 month earlier."
- The result depends on the time zone of whoever runs the search, so a shared filter near midnight can differ between colleagues.

## Ready-made queries

- [Due in the next N days](https://goingstellar.ro/tools/jql-examples/#due-next-n-days)

## Questions and answers

### Which JQL finds work items due today?

Use duedate = endOfDay(), or duedate >= startOfDay() AND duedate <= endOfDay(). Both forms match the same work.

## Related

- [startOfDay()](https://goingstellar.ro/reference/jql/startofday/)
- [endOfWeek()](https://goingstellar.ro/reference/jql/endofweek/)
- [now()](https://goingstellar.ro/reference/jql/now/)
- [duedate](https://goingstellar.ro/reference/jql/duedate-field/)
- [resolved](https://goingstellar.ro/reference/jql/resolved-field/)
- [ORDER BY](https://goingstellar.ro/reference/jql/order-by/)

## Sources

- [JQL functions (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)

