Shahid Profile picture
MERN Stack: HTML | CSS | Sass | JavaScript | Typescript | Bootstrap | Tailwind | MongoDb | Express | React | Next | Redux | Node | Git | Mui | Antd

May 28, 2022, 9 tweets

All about Dates and Timers in #javascript you need to know as a web developer.
#100DaysOfCode
🧵👇

📌The Date object in JavaScript is used to represent a moment of time. This time value (known as UNIX-TIME) is since 1 January 1970 UTC(Coordinated Universal Time). We can create a date using the Date object by calling the new Date() constructor as shown in the below syntax.

📌Different Ways of Creating Date and Time

📌Manipulating Date & Time.

📌Auto Correction in Dates and Timers.
✅Month is integer value ranging from 0 to 11. If a value greater than 11 is passed, year will be converted into next-year and month will be calculated from specified value like in example below. Similarly for date of month.

📌(1/2) Date and Time Methods.

📌(2/2) Date and Time Methods.

📌Date Operators

That's all for the thread.
If you find it useful, Like and retweet the first one.
Don't forget to follow.
@codewith_shahid

Thank You ❤️
#css #html #javascript

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling