Answers for "javascript mysql datetime"

6

javascript mysql datetime

var sqlDatetime = new Date(new Date().getTime() - new Date().getTimezoneOffset() * 60 * 1000).toJSON().slice(0, 19).replace('T', ' ');
console.log(sqlDatetime);
Posted by: Guest on October-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language