Answers for "how to get present date in javascript"

17

return current date in javascript

let today = new Date().toLocaleDateString()

console.log(today)
Posted by: Guest on March-01-2020
19

javascript get current time

var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
Posted by: Guest on March-30-2020
8

how to use current data in javascript

var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
Posted by: Guest on April-21-2020
0

how to get a due date from current date in javascript

var currentDate = new Date();
// to add 6 days to current date
var duedate = currentDate.addDays(6);
Posted by: Guest on February-08-2021

Code answers related to "how to get present date in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language