Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date javascript

let mdy = ['month', 'date', 'year'];
let hms = ['hour', 'minute', 'second'];
mdy = new Date().toLocaleDateString("en-US").split("/");
hms = new Date().toLocaleTimeString("en-US").split(/:| /);
console.log(mdy,hms);
 
PREVIOUS NEXT
Tagged: #date #javascript
ADD COMMENT
Topic
Name
7+9 =