const dateTime = '2021-02-28T14:57:00';// Ignore the date partconst [, time] = dateTime.split('T');// Ignore the secondsconst [hours, minutes] = time.split(':');hours; // '14'minutes; // '57'
const [,// datetime,] = dateTime.split('T');const [hours, minutes /* seconds */] = time.split(':');