minDate
Returns the minimum of the given dates.
- Use the ES6 spread syntax with
Math.min()
to find the minimum date value. - Use
new Date()
to convert it to aDate
object.
Returns the minimum of the given dates.
Math.min()
to find the minimum date value.new Date()
to convert it to a Date
object.