Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date now js

const t = new Date();
const date = ('0' + t.getDate()).slice(-2);
const month = ('0' + (t.getMonth() + 1)).slice(-2);
const year = t.getFullYear();

const time = `${date}/${month}/${year}`;

console.log(time);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #js
ADD COMMENT
Topic
Name
7+4 =