how to use current data in javascript
snippet in javascript

how to use current data in javascript

user7430

var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();

javascript get current time

user6770

var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();