Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date and time in javascript

var dateWithTime = new Date().toLocaleString().replace(",", "")
console.log(dateWithTime)  
//output :6/24/2022 9:36:33 PM
 
PREVIOUS NEXT
Tagged: #date #time #javascript
ADD COMMENT
Topic
Name
8+9 =