how to convert datetime to date in sql javascript code example
Example: Convert JS date time to SQLSERVER datetime
new Date().toISOString().slice(0, 19).replace('T', ' ');
new Date().toISOString().slice(0, 19).replace('T', ' ');