---
title: "Discussion on \"JS Date constructor timezone oddity\" | Hashnode"
description: "Discussion on \"JS Date constructor timezone oddity\". new Date('YYYY-MM-DD') might not do what you think it does"
url: "https://hashnode.com/posts/js-date-constructor-timezone-oddity/659ed44203bd187fdea59e2f"
---

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

Discussion

# [JS Date constructor timezone oddity](https://apisurfer.com/js-date-constructor-timezone-oddity?utm_source=hashnode&utm_medium=feed)

new Date('YYYY-MM-DD') might not do what you think it does

Jan 10, 2024 · 4 min read · apisurfer.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dateobject](https://hashnode.com/tag/dateobject)
-   [#datetime](https://hashnode.com/tag/datetime)
-   [#timezone](https://hashnode.com/tag/timezone)

## Written by

[Luka Vidakovic](https://hashnode.com/@lvidakovic)

@lvidakovic · Croatia

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

Software eng. with expertise in web tech

Software engineer. Interested in small and efficient tech product teams and ambitious projects that move things forward.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
