---
title: "Discussion on \"Zero Based getMonth() Lesson\" | Hashnode"
description: "Discussion on \"Zero Based getMonth() Lesson\". A lesson learned when working with dates and using getMonth() method that pulls what appears to be the incorrect date."
url: "https://hashnode.com/posts/zero-based-getmonth-lesson/62f5631d69fa1793160bddc8"
---

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

Discussion

# [Zero Based getMonth() Lesson](https://blog.chrisbenjamin.dev/zero-based-getmonth-lesson?utm_source=hashnode&utm_medium=feed)

A lesson learned when working with dates and using getMonth() method that pulls what appears to be the incorrect date.

Aug 11, 2022 · 3 min read · blog.chrisbenjamin.dev  
Read the article

-   [#til](https://hashnode.com/tag/til)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Chris Benjamin](https://hashnode.com/@ChrisBenjamin)

@ChrisBenjamin · Washington, US

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

I use technology to help businesses move forward.

I am a IT Professional and Developer from Washington State. I enjoy writing apps for the web, websites, and desktop applications. I’ve been in IT for over 15 years. I have a Bachelors degree in Computer Science where I studied web application development and administration. I have a Masters degree in Computer Science where I studied IT Management. I currently work as a IT Manager / Developer for a small legal office.

## Responses 1

Markdown supported · ⌘↵ to post

[Sagnik Mukhopadhyay](https://hashnode.com/@saggi)

[Oct 11, 2024](https://hashnode.com/posts/zero-based-getmonth-lesson/62f5631d69fa1793160bddc8/comment/67094b3442a876e5768b73ce)

Very helpful and insightful. It is a very common issue which most of us faces very frequently but takes up quite a bit of time to figure out a solution.
