Subtract Days from Date
Subtract days from any calendar date in your browser. UTC dates, exact worked example included.
What this subtract days from date does
The page subtracts whole UTC days from each date: 2026-03-31 minus 1 day prints as 2026-03-30 (Monday), and 1 March 2024 minus 1 day prints as 29 February 2024 because leap days are real calendar days here. Each line shifts on its own, so a list of dates moves together. A line that is not YYYY-MM-DD is refused with its line number and the expected form, and a count outside 1 to 9999 is refused with the range named. The visitor timezone can never move a result because every date is a UTC civil date.
How to use it
Subtract Days from Date: paste the date into the box above, set Days to subtract (default 1), and press Run to get the shifted date below.
Worked example
Input:
2026-03-31
Output:
2026-03-30 (Monday)
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads date and returns shifted date; reloading the page discards both.
The page subtracts whole UTC days from each date: 2026-03-31 minus 1 day prints as 2026-03-30 (Monday), and 1 March 2024 minus 1 day prints as 29 February 2024 because leap days are real calendar days here. Each line shifts on its own, so a list of dates moves together. A line that is not YYYY-MM-DD is refused with its line number and the expected form, and a count outside 1 to 9999 is refused with the range named. The visitor timezone can never move a result because every date is a UTC civil date.
Subtract days from any calendar date in your browser. UTC dates, exact worked example included.
How to use it
Subtract Days from Date: paste the date into the box above, set Days to subtract (default 1), and press Run to get the shifted date below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads date and returns shifted date; reloading the page discards both.
What to Expect
Best for
- Converting date to shifted date when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
2026-03-31
Sample output
2026-03-30 (Monday)
Frequently asked questions
How do I use the subtract days from date?
Subtract Days from Date: paste the date into the box above, set Days to subtract (default 1), and press Run to get the shifted date below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.