Date Calculator
Count the days between two dates or shift a date without a spreadsheet formula.
Counting days between dates or adding a duration meant reaching for spreadsheet formulas or a clunky calculator site.
A public deployment is available to try.
Case Study
Before
Counting days between dates and adding durations to specific dates required spreadsheet formulas or clunky online calculators.
After
The page gives instant calendar-day arithmetic for deadlines and planning, entirely in the browser.
How it's solved
Built a date calculator, now at /date-calculator in the Devtools Workbench suite, that shows the difference between two dates in days, weeks, and approximate months, and adds or subtracts days, weeks, or months from a base date.
Trade-offs
Calendar days only: no working-day or holiday handling and no timezone choice (dates use a fixed Bangkok calendar). The month difference is an average of 30.44 days.
Related Articles
Further reading on related topics from the blog
Building 100 Micro-Frontends: Lessons from a Solopreneur Journey
How I built and deployed 100 independently deployed micro-frontends on Vercel, the architecture decisions, trade-offs, and what I learned about scaling a one-person dev operation.
AI Integration Patterns for Web Developers: A Practical Guide
Practical patterns for integrating AI into web applications — from prompt engineering and streaming responses to building AI-powered tools that solve real user problems.
Essential AI Tools for Developers and Designers in 2025
A curated list of powerful AI tools that are transforming how developers and designers work, from OCR to design assistants.
Related Projects
More in Tech Domain · Book Dev
Devtools Workbench
17 browser-side developer tools on one site, from Base64 and JSON/YAML to cron, regex and diff, with one searchable catalog
Base64 Encoder
Encode and decode UTF-8 text as Base64 in the browser
Clipboard Manager
Save, pin, and search reusable text in this browser
Cron Expression
Explain five-field cron expressions and preview the next runs