---
title: "Discussion on \"Date Math Is the Bug You Ship Every Year: Time Zones, Leap Years, and Off-by-One Days\" | Hashnode"
description: "Discussion on \"Date Math Is the Bug You Ship Every Year: Time Zones, Leap Years, and Off-by-One Days\". Counting the days between two dates looks like the easiest job in programming. Subtract one timestamp from another, divide by the number of milliseconds in a day, done. Then a user in another time zon"
url: "https://hashnode.com/posts/date-math-is-the-bug-you-ship-every-year-time-zones-leap-years-and-off-by-one-days/6af41d0147ae0b9a57cdb690"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Date Math Is the Bug You Ship Every Year: Time Zones, Leap Years, and Off-by-One Days](https://handynest.hashnode.dev/date-math-is-the-bug-you-ship-every-year-time-zones-leap-years-and-off-by-one-days?utm_source=hashnode&utm_medium=feed)

Counting the days between two dates looks like the easiest job in programming. Subtract one timestamp from another, divide by the number of milliseconds in a day, done. Then a user in another time zon

Nov 11 · 7 min read · handynest.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dates](https://hashnode.com/tag/dates)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Muhammad Imran](https://hashnode.com/@muhammadimran)

@muhammadimran

  
[View profile](https://hashnode.com/@muhammadimran)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
