The Date parse() static method parses a string representation of a date and returns the date's timestamp which is the milliseconds since the epoch which is midnight at the beginning of January 1, 1970, UTC.
const parse = Date.parse('Fri Jan 26 2024 17:31:10');
console.log(parse);
// 1706308270000