> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# SINCE, UNTIL and DURING

> Set the date range a report covers.

A report covers a date range, set in one of two ways: a named period with `DURING`, or a start and end with `SINCE` and `UNTIL`. Leave the date clause out and the report covers all your history.

Dates are days in your store's timezone, set in **Settings › General**. The date button on the report page and the date clause are the same thing: change one and the other follows.

## DURING

`DURING` picks a named period:

```sql theme={null}
FROM sales
  SHOW net_sales
  DURING last_month
```

| Period | Covers |
| - | - |
| `today`, `yesterday` | That day |
| `this_week`, `this_month`, `this_quarter`, `this_year` | The period so far, up to today |
| `last_week`, `last_month`, `last_quarter`, `last_year` | The whole previous period |
| `this_weekend`, `last_weekend` | Saturday and Sunday |
| `bfcm2025` | Black Friday to Cyber Monday that year |

## SINCE and UNTIL

`SINCE` sets the first day and `UNTIL` the last, both included. Leave out `UNTIL` and the range runs to today.

```sql theme={null}
FROM sales
  SHOW net_sales
  SINCE -30d UNTIL yesterday
```

Each can be:

| Write | Means |
| - | - |
| `2026-01-31` | That date |
| `today`, `yesterday` | That day |
| `-30d`, `-4w`, `-3m`, `-1q`, `-1y` | Days, weeks, months, quarters or years before today |
| `startOfMonth(-1m)`, `endOfMonth(-1m)` | The first or last day of a period, counted back from this one |
| `last_month`, `this_year` and the other periods above | That period's first day after `SINCE`, its last day after `UNTIL` |

The `startOf` and `endOf` forms come for `Day`, `Week`, `Month`, `Quarter` and `Year`. `startOfMonth(0)` is the first of this month, `endOfQuarter(-1q)` the last day of last quarter.

```sql theme={null}
FROM sales
  SHOW net_sales
  SINCE startOfMonth(-3m) UNTIL endOfMonth(-1m)
```

A date written out stays fixed. Everything else is worked out on the day the report runs, so a saved or [scheduled](https://docs.queryful.app/user-guide/schedules/index.md) report always covers the right days.

To compare the range with an earlier one, add [COMPARE TO](https://docs.queryful.app/queryfulql/syntax/compare-to.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.