maxDate
Returns the maximum of the given dates.
- Use the ES6 spread syntax with
Math.max()to find the maximum date value. - Use
new Date()to convert it to aDateobject.
Returns the maximum of the given dates.
Math.max() to find the maximum date value.new Date() to convert it to a Date object.