JavaScript Date Methods , Display Current Date and Time in JavaScript
My second Channel:
WrestleTalkByAzhar - / wrestletalkbyazhar
Now you can Donate us via Paypal or Google Pay
Paypal link : https://www.paypal.me/Azhar67
GooglePay/PhonePe/BHIM App UPI ID : shaikazharjamal@okhdfcbank
Code:
let dateTime = new Date()
console.log(dateTime.getFullYear())
console.log(dateTime.getDate())
console.log(dateTime.getHours())
console.log(dateTime.getMinutes())
console.log(dateTime.getMonth())
function getMonthInString(month){
if(month == 2){
return "March"
}
}
console.log(getMonthInString(dateTime.getMonth()))
console.log("The today's date is "+dateTime.getDate()+" "+getMonthInString(dateTime.getMonth())+" "+dateTime.getFullYear()+" "+dateTime.getHours()+":"+dateTime.getMinutes()+":"+dateTime.getSeconds())
Description Tags:
JavaScript Tutorial: Date & Time In JavaScript
The Date Object - Getting, Setting & Formatting Dates in JavaScript
How to Display Current Date and Time in Javascript
Date Object: Date & Time In JavaScript
Date time formatting in Javascript
How to Display Dates and Times in JavaScript
How to Display Date and Time on Web Page using JavaScript- JavaScript Tutorial
Chapters:
0:00 - Introduction of Date Methods
0:16 - Program for Date Methods and execution parallelly
8:01 - End Tags and subscription to channel
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
► 1. Javascript - • Javascript Factory
► 2. Puppetter - • Puppeteer
► 3. Cypress - • Cypress
► 4. Tech works - • Video
► 5. Vbscript Basics To Advanced - • VBScript Part 1 - Features Advantage...
► 6. Jmeter - • Jmeter Tutorials
► 7. Excel - • Videos On Excel
► 8. Appium - • Appium
► 9. Shares - • Shares
► 10. Javascript Interview Questions - • Javascript Interview Questions
► 11. C# Tutorials - • C# Factory
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#JavaScript
#JavascripDateMethods
#CurrentDateAndTime