What would be the best way to convert a mysql date format date into a javascript Date object?
mySQL date format is \'YYYY-MM-DD\' (ISO Format).
maybe something like?
[Y,M,D,h,m,s] = '2020-11-06 16:00:00'.split(/[- :]/)