general

Calculate the difference between two dates in days, weeks, months, years, and business days. Accepts dates in YYYY-MM-DD format. Returns the absolute difference (order doesn't matter) plus a flag indicating whether the end date is in the future relative to start. Business days count only Monday through Friday. Useful for project planning, deadline tracking, contract duration calculations, and age computations.

post/api/date_difference

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/date_difference
  • Auth: none declared

Request body

start_datestring required

Start date in YYYY-MM-DD format (e.g., '2024-01-15').

end_datestring required

End date in YYYY-MM-DD format (e.g., '2024-12-31').

Response

Computed result for date_difference

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.