Если вы передадите эту строку новой функции Date (yourString), она вернет вам объект даты JavaScript.
https://developer.mozilla.org/en-US/ docs / Web / JavaScript / Reference / Global_Objects / Date
Пример:
const newDate = new Date('2008-09-15T15:53:00')
// Will return a date object with the value of:
// Mon Sep 15 2008 15:53:00 GMT-0700 (Pacific Daylight Time)
const currentDate = Date.now();
// Will return a date object with the current date.
console.log(newDate < currentDate);
// Will compare the two dates.