---
title: "Discussion on \"Get the first and last moment of a day in Javascript\" | Hashnode"
description: "Discussion on \"Get the first and last moment of a day in Javascript\". Ready-to-use functions to get the first and last millisecond of a day using a few lines of vanilla JavaScript."
url: "https://hashnode.com/posts/get-the-first-and-last-moment-of-a-day-in-javascript/609980cf1ea29f2c341e3746"
---

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

Discussion

# [Get the first and last moment of a day in Javascript](https://danielcobo.com/get-the-first-and-last-moment-of-a-day-in-javascript?utm_source=hashnode&utm_medium=feed)

Ready-to-use functions to get the first and last millisecond of a day using a few lines of vanilla JavaScript.

May 10, 2021 · 2 min read · danielcobo.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#time](https://hashnode.com/tag/time)
-   [#data](https://hashnode.com/tag/data)

## Written by

[Daniel Cobo](https://hashnode.com/@cobo)

@cobo

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

👨‍💻 Full-stack developer |🍦Vanilla code advocate

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
