# startOfDay() in JQL: syntax and examples

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

startOfDay() stands for 00:00 of the current day. Compare a date field with it to find work created, updated or due since midnight. Add an offset such as "-1" or "+7d" to move the boundary by days, weeks or hours.

## Syntax

```
startOfDay()
startOfDay("inc")
```

## Arguments

- `inc` (optional: yes): 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

```
created >= startOfDay("-1") AND created < startOfDay()
```

Everything created yesterday, from 00:00 to 23:59. The pair of bounds is what makes it one calendar day. Run on Jira Cloud on 2026-11-29.

```
created >= startOfDay("-7d") AND created < startOfDay()
```

The last seven full days, without today's half-finished one. Useful for a weekly intake count that does not change during the day. Run on Jira Cloud on 2026-11-29.

```
resolved >= startOfDay("-1") AND resolved < startOfDay()
```

What the team closed yesterday, for a daily stand-up list. Run on Jira Cloud on 2026-11-29.

```
updated < startOfDay("-14") AND statusCategory != Done ORDER BY updated ASC
```

Open work nobody has touched for two weeks, oldest first. Run on Jira Cloud on 2026-11-29.

```
status CHANGED TO Done AFTER startOfDay()
```

Work moved to Done since midnight. The function works inside a CHANGED predicate, not only after a comparison sign. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- Dates are compared in the time zone configured for the person searching, so midnight in Bucharest is not midnight in New York. The same saved filter can return different work items for two colleagues.
- `created > startOfDay("-1")` means since yesterday's midnight, so it includes today as well. For yesterday alone you need both bounds, as in the first example.
- The offset unit is case sensitive: `"-1M"` is a month, `"-1m"` is a minute.
- It returns a point in time, not a list. `assignee in startOfDay()` fails with "Operator 'in' does not support the non-list value 'startOfDay()' for field 'assignee'".

## Ready-made queries

- [Overdue work items](https://goingstellar.ro/tools/jql-examples/#overdue)
- [Due today](https://goingstellar.ro/tools/jql-examples/#due-today)
- [Due in the next N days](https://goingstellar.ro/tools/jql-examples/#due-next-n-days)
- [Overdue and unassigned](https://goingstellar.ro/tools/jql-examples/#overdue-unassigned)
- [Updated today](https://goingstellar.ro/tools/jql-examples/#updated-today)

## Questions and answers

### How do I find Jira work items created today?

Use created >= startOfDay(). It matches everything created since 00:00 in your own time zone.

### How do I search for yesterday in JQL?

Use two bounds: created >= startOfDay("-1") AND created < startOfDay(). The same pattern works for updated and resolved.

## Related

- [endOfDay()](https://goingstellar.ro/reference/jql/endofday/)
- [startOfWeek()](https://goingstellar.ro/reference/jql/startofweek/)
- [startOfMonth()](https://goingstellar.ro/reference/jql/startofmonth/)
- [now()](https://goingstellar.ro/reference/jql/now/)
- [created](https://goingstellar.ro/reference/jql/created-field/)
- [updated](https://goingstellar.ro/reference/jql/updated-field/)

## Sources

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

