getDate methods in javascript | dates in Javascript | Javascript Dates

Published: 15 October 2022
on channel: Rank1 Education
115
4

#JavaScript Basics Tutorial
In this video, I’ll show you how to use date methods like
getDate( ), getMonth( )

Complete JavaScript Playlist link
   • Complete JavaScript  Basics  

/ Dates METHODS in JAVASCRIPT

var d = new Date(); //create a new date object and inspect in Console
console.log(d); //FullDate
console.log("Current Year :" + d.getFullYear()); //Get the year as a four digit number (yyyy)
console.log("Current Month: " + (d.getMonth()+1)); //Get the month as a number (0-11) =====
console.log("Today's Date: " + d.getDate()); //Get the day as a number (1-31)
console.log("Hours: " + d.getHours()); //Get the hour (0-23)
console.log("Minutes: " + d.getMinutes()); //Get the minute (0-59)
console.log("Seconds: " + d.getSeconds()); //Get the second (0-59)
console.log("Milliseconds: " + d.getMilliseconds()); //Get the millisecond (0-999)
console.log("Epoch: " + d.getTime()); //Get the time (milliseconds since January 1, 1970)
console.log("weekday: " + (d.getDay() + 1)); //Get the weekday as a number (0-6)




🪄Enjoy!

🔥Motivation for Learning🔥
➡️"An investment in knowledge pays the best Interest."

Hi! I’m Ajinkya Sir.
🌎Mentored 5000+ Students Online and Offline
B-Tech In Electronics.
Passionate Teacher by Profession.
Be smart and Think logically

❓If you have any doubt or you want us to cover a certain topic,
please comment below.


✅If you need a video on particular topic just write in comment section.

📛BATCH NAME📛 : RANKERS

We stream our sessions Live and Recorded sessions on this channel
Video are scheduled on timeline as Upcoming Live Stream.
videos are posted on daily basis.


ASK YOUR DOUBTS IN THE 💬COMMENT SECTION

Connect with me personally on
🔗📌Telegram : https://t.me/Rank1edu
🔗📌YouTube:    / rank1education  
🔗📌Instagram Official: @Rank1_Knowledge
🔗📌Instagram Personal: @ajinkya0011
🔗📌instagram:  / ajinkya0011  
🔗📌website: https://rank1.org.in


🙏🏻Do Like, Share and Subscribe our channel for Quality Learning Videos.
Regards,
Ajinkya Sir
-------------------------------------------------------------------------------------------------
Please 💓Like , Comment, Share and Subscribe💯
#rank1 Education
#rank1
#rank1education
#AjinkyaSir

Don't forget to hit the🔔bell icon for further updates.

😊Thanks for 📺watching my video
Regards,
Er Ajinkya Sir


On this page of the site you can watch the video online getDate methods in javascript | dates in Javascript | Javascript Dates with a duration of hours minute second in good quality, which was uploaded by the user Rank1 Education 15 October 2022, share the link with friends and acquaintances, this video has already been watched 115 times on youtube and it was liked by 4 viewers. Enjoy your viewing!