DEV Community

loading...

Discussion on: All That You Need To Know About Date Object In JavaScript

Collapse
piaomu profile image
Kasey Wahl

"In JavaScript the date/time is not a string, it is represented as object, Date object, there is no separate data type for time and date, both time and date are represented using Date object."

THIS!!!

When I first started JavaScript, I didn't internalize this distinction (probably because I wasn't focusing on the object-oriented side of JS) and it led to a LOT of frustration until I got a better understanding of how objects work.

What a great, comprehensive explainer!

Collapse
kiranrajvjd profile image
Kiran Raj R Author

I just share what I know.. happy to know it is useful... Thank you...