const date = new Date(); //YYYY-MM-DD format const mysqlDate = date.toISOString().split("T")[0];
2019-12-01