getDate methods in javascript | dates in Javascript | Javascript Dates

Publié le: 15 octobre 2022
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne getDate methods in javascript | dates in Javascript | Javascript Dates durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Rank1 Education 15 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 115 fois et il a aimé 4 téléspectateurs. Bon visionnage!