var arr = dateStr.split(/[- :]/); let startTime = new Date(arr[0], arr[1] - 1, arr[2], arr[3], arr[4], arr[5]); startTime = Date.parse(startTime)
2023-10-13 15:26:04
var arr = dateStr.split(/[- :]/); let startTime = new Date(arr[0], arr[1] - 1, arr[2], arr[3], arr[4], arr[5]); startTime = Date.parse(startTime)