---
title: "Date Calculator"
method: GET
path: "/api/calc/date-calculator"
tags: ["DateTime"]
---

# Date Calculator

`GET /api/calc/date-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/date-calculator`
- Auth: none declared

Add or subtract days, weeks, months or years from any date to get the exact date and weekday – like 90 days from today. Leap years and month ends handled.

## Query parameters

- `start` string, date: Start date Leave empty to start from today. (YYYY-MM-DD)
- `op` 'add' | 'subtract': Operation
- `years` number: Years
- `months` number: Months
- `weeks` number: Weeks
- `days` number: Days

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
