Date.parse() - JavaScript | MDN

The Date.parse() static method parses a string representation of a date, and returns the date's timestamp.