A clean way to do it would be to convert each date to a Date() and take the max

ES6:

new Date(Math.max(...a.map(e => new Date(e.MeasureDate))));

JS:

new Date(Math.max.apply(null, a.map(function(e) {
  return new Date(e.MeasureDate);
})));

where a is the array of objects.

What this does is map each of the objects in the array to a date created with the value of MeasureDate. This mapped array is then applied to the Math.max function to get the latest date and the result is converted to a date.

By mapping the string dates to JS Date objects, you end up using a solution like Min/Max of dates in an array?

--

A less clean solution would be to simply map the objects to the value of MeasureDate and sort the array of strings. This only works because of the particular date format you are using.

a.map(function(e) { return e.MeasureDate; }).sort().reverse()[0]

If performance is a concern, you may want to reduce the array to get the maximum instead of using sort and reverse.

Answer from arcyqwerty on Stack Overflow
🌐
Medium
medium.com › @luke.sloanebulger › how-to-find-the-min-and-max-dates-in-a-javascript-array-baa6dd5deb66
How To Find The Min and Max Dates in a JavaScript Array? | by Luke Sloane-Bulger | Medium
November 3, 2023 - To return the min and max dates from the above array we can use a combination of Math.min(), Math.max() and the spread operator ... to do this. ... const arrOfDates = [ new Date("2023/01/01"), new Date("2023/01/02"), new Date("2023/01/03"), ...
🌐
W3Resource
w3resource.com › javascript-exercises › javascript-date-exercise-11.php
JavaScript: Maximum date from an array of dates - w3resource
July 17, 2025 - It converts the first date string in the 'all_dates' array to a Date object and assigns it to 'max_dtObj'. It iterates through each date string in the 'all_dates' array using the "forEach()" method.
Discussions

javascript - Min/Max of dates in an array? - Stack Overflow
will return the second date in the array (because it is the earliest). ... Doesn't directly answer OP's question. OP is asking if a built-in method is available in JavaScript. So, although _.min & _.max can be used to find min or max dates, but is not what the OP is looking for. More on stackoverflow.com
🌐 stackoverflow.com
javascript - Get max and min dates from an array - Stack Overflow
How can I get the max date value and min date value from the above data? The data may be not in sorted order. ... Check if it helps... Fiddle. Also have a look @ Min/Max of dates in an array ... var latest = new Date(Math.max.apply(null,dates)); var earliest = new Date(Math.min.apply(null,dates)); ... Is there an implicit conversion from Date to int in javascript ... More on stackoverflow.com
🌐 stackoverflow.com
Finding the max date from an array of dates using javascript - Stack Overflow
There are two date fields namely 'Date 1' and 'Date 2'. On clicking the button 'Check', the maximum of the two dates need to be printed in the 'Max Date' field. So how to print the max date from a ... More on stackoverflow.com
🌐 stackoverflow.com
javascript - How to get a string of max date from an array of string dates? - Stack Overflow
What would be the most elegant way to get max date from an array of strings like below? var dates = ["2018-12-29T15:23:20.486695Z", "2018-12-29T15:23:21.613216Z", "2018-12-29T15:23:22.695710Z", "2... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-select-min-max-dates-in-an-array-using-javascript
How to Select Min/Max Dates in an Array Using JavaScript? - GeeksforGeeks
July 12, 2025 - It uses Math.max() and Math.min() ... result is printed using console.log(). Use reduce() method in an array of dates and define the respective function for the maximum and minimum dates. JavaScript ·...
🌐
30 Seconds of Code
30secondsofcode.org › home › javascript › date › min or max date
Find the minimum or maximum date using JavaScript - 30 seconds of code
January 6, 2024 - const minDate = (...dates) => new Date(Math.min(...dates)); const maxDate = (...dates) => new Date(Math.max(...dates)); const dates = [ new Date('2017-05-13'), new Date('2018-03-12'), new Date('2016-01-10'), new Date('2016-01-09') ]; ...
🌐
Plain English
plainenglish.io › home › blog › javascript › how to get the min and max dates in a javascript date array?
How to Get the Min and Max Dates in a JavaScript Date Array?
March 23, 2023 - In this article, we’ll look at how to the min and max dates in a JavaScript date array. We can use the Math.max and Math.min methods to get the max and min dates respectively.
🌐
Bobby Hadz
bobbyhadz.com › blog › javascript-get-max-min-date-in-array-of-objects
Get the Max/Min Date in an Array of Objects in JavaScript | bobbyhadz
Get the Min/Max Dates in an Array in JavaScript · To get the Max/Min date in an array of objects: Use the map() method to get an array of Date objects. Unpack the values from the array in a call to the Math.max() or Math.min() functions.
Find elsewhere
🌐
JavaScript in Plain English
javascript.plainenglish.io › how-to-get-the-min-and-max-dates-in-a-javascript-date-array-1fee265b7cdf
How to Get the Min and Max Dates in a JavaScript Date Array? | by John Au-Yeung | JavaScript in Plain English
March 23, 2023 - In this article, we’ll look at how to the min and max dates in a JavaScript date array. We can use the Math.max and Math.min methods to get the max and min dates respectively.
🌐
CodePen
codepen.io › nasyxnadeem › pen › VwyYGZm
get max date(most recent date) in an array of JavaScript date objects
By selecting a package, an import statement will be added to the top of the JavaScript editor for this package. ... Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
🌐
Tutorial Reference
tutorialreference.com › javascript › examples › faq › javascript-how-to-get-max-min-date-in-an-array
How to Get the Max or Min Date in an Array in JavaScript | Tutorial Reference
const dates = [ new Date('2025-10-27'), new Date('2025-09-15'), new Date('2026-01-10'), ]; ... Find the Timestamp: Use Math.max() or Math.min() with the spread syntax (...) to get the extreme timestamp from the array.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Math › max
Math.max() - JavaScript - MDN Web Docs
console.log(Math.max(1, 3, 2)); // Expected output: 3 console.log(Math.max(-1, -3, -2)); // Expected output: -1 const array = [1, 3, 2]; console.log(Math.max(...array)); // Expected output: 3
🌐
Decipher
decipher.dev › maxdate
maxDate | 30 Seconds of Typescript - Decipher.dev
Use the ES6 spread syntax with Math.max to find the maximum date value, new Date() to convert it to a Date object. ... const array = [ new Date(2017, 4, 13), new Date(2018, 2, 12), new Date(2016, 0, 10), new Date(2016, 0, 9), ]; maxDate(array); ...
🌐
Tumblr
tumblr.com › obscurejavascript › 149614290872 › finding-max-date-in-one-line-in-javascript
Finding Max Date in One Line In JavaScript – @obscurejavascript on Tumblr
var dates = [ new Date("2011/06/25"), new Date("2011/06/28"), new Date("2011/06/27"), new Date("2011/06/26") ]; var maxDate = new Date(Math.max.apply(null, dates)); console.log(maxDate); // Tue Jun 28 2011 00:00:00 GMT-0400 (EDT) Your results ...
🌐
TutorialsPoint
tutorialspoint.com › sort-array-based-on-min-and-max-date-in-javascript
Sort array based on min and max date in JavaScript?
And then the function should finally return an object containing those two dates. const arr = [ "2017-01-22 00:21:17.0", "2017-01-27 11:30:23.0", "2017-01-24 15:53:21.0", "2017-01-27 11:34:18.0", "2017-01-26 16:55:48.0", "2017-01-22 11:57:12.0", "2017-01-27 11:35:43.0" ]; const findMinMaxDate = (arr = []) => { const res = arr.reduce((acc, val, ind) => { if (!ind) { return { min: val, max: val}; }; if (val < acc.min) { acc.min = val; }; if (val > acc.max) { acc.max = val; }; return acc; }, undefined); return res; }; console.log(findMinMaxDate(arr));
🌐
ServiceNow Community
servicenow.com › community › developer-forum › how-to-get-a-latest-date-from-an-array › m-p › 1979830
Solved: how to get a latest date from an array - ServiceNow Community
June 1, 2024 - ... function max_date(all_dates) { var max_dt = all_dates[0], max_dtObj = new Date(all_dates[0]); all_dates.forEach(function(dt, index) { if ( new Date( dt ) > max_dtObj) { max_dt = dt; max_dtObj = new Date(dt); } }); return max_dt; } gs.print(max_date(["2019/08/28","2019/08/29","2019/09/06"]));