Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

readable date in javascript

var date = new Date();
console.log(date.toLocaleDateString()); // 4/23/2022
console.log(date.toDateString());       // Sat Apr 23 2022
console.log(date.toGMTString());        //Sat, 23 Apr 2022 13:24:55 GMT
 
PREVIOUS NEXT
Tagged: #readable #date #javascript
ADD COMMENT
Topic
Name
5+1 =