EditSafely

Truncate a Calendar Date

Drop the day (or the day and month) to snap each date down to its month or year.

Runs on your device, nothing uploaded

Truncate to
Try:

Output

Drop the day (or the day and month) to snap each date down to its month or year.

Type or paste above to see the result here.

Example: Truncate to the month

What you paste never leaves this tab

Truncate a Calendar Date is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Truncate a Calendar Date

  1. 1. Type or pick a date. Type a date in the Date field, such as 2026-07-14 or 14/07/2026, or tap the calendar button to pick one. It starts on today. To do a whole list, turn on Many at once and paste one date per line.
  2. 2. Choose what to truncate to. Under Truncate to, pick Week to go back to the Monday that starts the week, Month for the 1st of the month, Quarter for the 1st of January, April, July or October, or Year for 1 January. The answer shows the date before and after.
  3. 3. Copy the truncated dates. Click copy on the output pane to grab every truncated date. Switching the setting recalculates the whole list instantly.

When to use Truncate a Calendar Date

Truncate a Calendar Date drops the day, or the day and month, from each date you provide, snapping it down to the start of its month or year rather than rounding to the nearest one. Use it when you specifically need a floor operation, not a round.

  • Grouping records by billing month. A billing system needs every transaction date collapsed to the first of its month for grouping in a monthly revenue report. Truncate to Month before pivoting the data.
  • Building a yearly cohort analysis. A cohort analysis groups users by the year they signed up, regardless of the exact month or day. Truncate signup dates to Year to get clean cohort buckets.
  • Normalizing dates for a monthly comparison. Two datasets record the same events with different day-of-month values. Truncate both to Month so they can be joined and compared on equal footing.

Examples

Truncate to the month

Input

2026-07-14

Output

2026-07-01

Truncate to the year

Input

2026-07-14

Output

2026-01-01

Truncate to the quarter

Input

2026-08-14

Output

2026-07-01

Truncate to the week (Monday)

Input

2026-07-14

Output

2026-07-13

About the Truncate a Calendar Date tool

Truncate a Calendar Date is a free online tool that works entirely inside your web browser. Drop the day (or the day and month) to snap each date down to its month or year. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 90 Time utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with the Truncate to setting, and the result refreshes the moment you change it. 4 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Is Truncate a Calendar Date free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Time Tools →