# Days until Wednesday

Counts the days from today, or any date you choose, to the next Wednesday, with its date and the Wednesday after it.

- Page: https://www.acalculator.org/days/days-until-wednesday
- JSON spec: https://www.acalculator.org/days/days-until-wednesday.json
- Version: ed394b72858d

## Default answer

Example with the default inputs (Count from September 30, 2026) on the example date Wednesday, September 30, 2026: From September 30, 2026, there are 0 days until Wednesday, September 30, 2026.

## Inputs

| Key | Label | Description |
| --- | --- | --- |
| from | Count from | The date to count from. Today, unless you change it. |

## Outputs

| Key | Label | Description |
| --- | --- | --- |
| days | Days until Wednesday | Whole days from the start date to the next Wednesday; 0 when the start date is a Wednesday. |
| date | Next Wednesday | The next Wednesday on or after the start date. |
| after | The Wednesday after | The Wednesday one week later. |

## Method

Days until Wednesday = (3 − the start date’s weekday + 7) mod 7, with Sunday = 0, Monday = 1, …, Saturday = 6.

## Assumptions

- On a Wednesday, the count is 0; the Wednesday after is 7 days away.
- The start date itself is not counted: from the day before, the count is 1.
- Dates are calendar days with no time of day, so a time zone or a daylight-saving change never adds or loses a day.
- Start dates from January 1, 1900 to December 31, 2400 work.

## Worked examples

1. from = 2026-09-28 gives date = 2026-09-30, days = 2. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).
2. from = 2026-12-31 gives date = 2027-01-06, days = 6. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).
3. from = 2028-02-27 gives date = 2028-03-01, days = 3. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).

## FAQ

### How many days until Wednesday from each day of the week?

From Monday, 2; from Tuesday, 1; from Wednesday, 0; from Thursday, 6; from Friday, 5; from Saturday, 4; from Sunday, 3. On a Wednesday the count is 0, and the Wednesday after is 7 days away.

### What if today is Wednesday?

Then the count is 0, because the next Wednesday on or after today is today. The page also shows the Wednesday after it, 7 days later.

### How many Wednesdays are in a year?

A year of 365 days is 52 weeks and 1 day, so the weekday of January 1 comes 53 times and every other weekday 52 times; in a leap year, the weekdays of January 1 and 2 come 53 times. 2026 has 52 Wednesdays, and 2027 has 52.

### How are the days until Wednesday counted?

From the start date (today, unless you change it) to the next Wednesday, without counting the start date, in calendar days. Weekends and holidays count like any other day.
