# <= (less than or equal) in CQL: syntax and examples

URL: https://goingstellar.ro/reference/cql/less-than-equals-operator/

The <= operator keeps content whose date is the value or earlier. With a date-only value the whole day counts as included, which makes it the natural upper bound for a period. Use it with created and lastModified.

## Syntax

```
f
i
e
l
d
 
<
=
 
v
a
l
u
e
```

## Arguments

- `field`: created or lastModified.
- `value`: A quoted date or date and time, or a date function such as endOfMonth("-1M").

## Works with

- Fields: Created, LastModified (the only fields the field reference lists for range operators)
- Functions: now(), startOfDay(), startOfWeek(), startOfMonth(), startOfYear(), endOfDay(), endOfWeek(), endOfMonth(), endOfYear()
- Not with: ancestor, content, creator, contributor, favourite, id, mention, owner, parent, watcher (Operator '<=' is not supported), and text-type fields such as title, space, type, label (Could not parse cql)

## Examples

```
lastmodified <= "2026-11-01"
```

Everything last changed on or before the first of the month, the closing date of a reporting period. Run on Confluence Cloud on 2026-11-29.

```
lastmodified <= now("-8w") AND type = page
```

Pages not edited in the last eight weeks, a rolling review list. Run on Confluence Cloud on 2026-11-29.

```
lastmodified <= endOfMonth("-1M") AND type = page AND space = SD
```

Pages whose last edit was in last month or earlier, handy on the first day of a new month. Run on Confluence Cloud on 2026-11-29.

```
created <= "2026-11-01" AND type = page AND ancestor = 655541
```

Pages under a space home that existed by a given date, for a before-and-after comparison. Run on Confluence Cloud on 2026-11-29.

```
lastmodified <= "2026-11-01 12:00" AND type = page
```

Pages last edited up to noon on a given day, when you need a time cut-off. Run on Confluence Cloud on 2026-11-29.

## Pitfalls

- The docs example in the LESS THAN EQUALS section is `created >= startOfWeek("-1w") and type = blogpost`. It uses >=, not <=, and it also describes blog posts since the start of the fortnight. It runs, but it does not show this operator.
- A date-only value includes its whole day: `lastmodified <= "2026-11-01"` keeps edits made at any time on the first, while `<` would stop at midnight (checked on Confluence Cloud, November 2026).
- Do not expect <= to work on titles or other text. `title <= "Company handbook"` fails with "Could not parse cql".

## Related

- [<](https://goingstellar.ro/reference/cql/less-than-operator/)
- [>=](https://goingstellar.ro/reference/cql/greater-than-equals-operator/)
- [endOfMonth()](https://goingstellar.ro/reference/cql/endofmonth/)
- [lastmodified](https://goingstellar.ro/reference/cql/lastmodified-field/)
- [AND](https://goingstellar.ro/reference/cql/and-keyword/)
- [created](https://goingstellar.ro/reference/cql/created-field/)

## Sources

- [CQL operators (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-operators/)
- [CQL fields (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-fields/)

