javascript date converter to mysql code example
Example: convert datetime javascript mysql
function getTime() {
const date = new Date();
return date.getFullYear()
+ '-' +
date.getMonth()
+ '-' +
date.getDate()
+ ' ' +
date.getHours()
+ ':' +
date.getMinutes()
+ ':' +
date.getSeconds();
}