1const dates = [];
2dates.push(new Date('2011/06/25'));
3dates.push(new Date('2011/06/26'));
4dates.push(new Date('2011/06/27'));
5dates.push(new Date('2011/06/28'));
6const maxDate = new Date(Math.max.apply(null, dates));
7const minDate = new Date(Math.min.apply(null, dates));