convert date to year month date day hours minutes seconds milliseconds) code example
Example: return a date time object in yyyy-mm-dd hr:min:sec
const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");