I have an array object that has a date field like this
settledDate: "12-19-2018"
settledDate: "12-12-2018"
settledDate: "10-19-2018"
settledDate: "10-12-2018"
I will like to determine the minimum and maximum date in this array.
I tried this but no luck
const maxDate = new Date(Math.max.apply(null, this.props.form.details.bulkDetailsInvoices.settledDate));
const minDate = new Date(Math.min.apply(null, this.props.form.details.bulkDetailsInvoices.settledDate));
Any ideas on what I can do to make this work?