find min and max date in array javascript
const dates = [];
dates.push(new Date('2011/06/25'));
dates.push(new Date('2011/06/26'));
dates.push(new Date('2011/06/27'));
dates.push(new Date('2011/06/28'));
const maxDate = new Date(Math.max.apply(null, dates));
const minDate = new Date(Math.min.apply(null, dates));
Also in JavaScript:
- how to delete element in array in javascript
- electron js execute command
- create node project
- react native elements
- javascript yield
- creating function in node js
- inject javascript to webpage
- reactjs TypeError: b is undefined
- use callback vs use memo
- archiver compressed file in nodejs
- how to trigger events when the document loads in js
- ajax
- how to remove duplicates in array in javascript
- create an element jquery
- for loop in jquery array
- How to make string shorter javascript
- js get last element of array
- devexpress custom column field
- closures in javascript
- update angular to specific version
- firestore update array
- check if textbox is focused jquery
- how to make dynamic columns in jquery
- shadowoffset react native constructor