SetDate Methods in Javascript |How to use setdate method using javascript

Publié le: 16 octobre 2022
sur la chaîne: Rank1 Education
205
7

JavaScript Basics Tutorial

In this video, I’ll show you how to use setdate methods in javascript.
sethours( ),SetMinutes and many more methods.

Complete JavaScript Playlist link
   • Complete JavaScript  Basics  






.var p = new Date(); //new object P
console.log(p);
//Get the time. ECMAScript 5.
p.setDate(26); //Set the day as a number (1-31)
console.log(p);//---------------
p.setFullYear(2024); //Set the year (optionally month and day)
console.log(p);//----------------
p.setHours(12); //Set the hour (0-23)
console.log(p);//------------------
p.setMilliseconds(486); //Set the milliseconds (0-999)
console.log(p);//---------------
p.setMinutes(45); //Set the minutes (0-59)
console.log(p);//-----------------
p.setMonth(3); //Set the month (0-11)
console.log(p); //------------------
p.setSeconds(36); //Set the seconds (0-59)
console.log(p); //-----------------------
p.setTime(15000000); //Set the time (milliseconds since January 1, 1970)

console.log(p); //------------------------


🪄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
#10th icse #mathematics
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 SetDate Methods in Javascript |How to use setdate method using javascript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Rank1 Education 16 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 205 fois et il a aimé 7 téléspectateurs. Bon visionnage!