JSFiddle - React, Tailwind, and code Playground

by Luis Valle

HTML

<script src="https://cdn.jsdelivr.net/momentjs/2.18.1/moment.min.js"></script>

JavaScript

var response = [{"__type":"FastIron.Web.EquipHX.Entities.InspectionsDataItem","InspectionId":"590a1c8d9c5f5b421100024b","Make":"Cat","Model":"349ELVG","MakeModelTitle":"Cat 349ELVG","SerialNumber":"KCN00292","Year":null,"Hours":5320,"CreatedDate":"2017-05-03 14:08:14","UpdatedDate":"2017-05-03 14:21:27","Customer":"","Latitude":null,"Longitude":null,"AssignedTo":"Diane Allen","CreatedBy":"Richard Loredo","Title":"HE Rental Receiving Check In ","Link":"http://mac-inspect.com/inspections/590a1c8d9c5f5b4211000255","Dealer":"MacAllister Machine","OverallInspectionScore":null},{"__type":"FastIron.Web.EquipHX.Entities.InspectionsDataItem","InspectionId":"591afb769c5f5b2ac4000445","Make":"Cat","Model":"349E","MakeModelTitle":"Cat 349E","SerialNumber":"KCN00292","Year":null,"Hours":5321,"CreatedDate":"2017-05-16 09:15:34","UpdatedDate":"2017-05-16 11:47:43","Customer":"","Latitude":null,"Longitude":null,"AssignedTo":"Diane Allen","CreatedBy":"Steven Hall","Title":"HE Rental Shipping Check Out","Link":"http://mac-inspect.com/inspections/591afb769c5f5b2ac400044f","Dealer":"MacAllister Machine","OverallInspectionScore":null},{"__type":"FastIron.Web.EquipHX.Entities.InspectionsDataItem","InspectionId":"59271b5b9c5f5b3a36000a5b","Make":"CAT - WF11287","Model":"349E","MakeModelTitle":"CAT 349E","SerialNumber":"KCN00292","Year":null,"Hours":null,"CreatedDate":"2017-05-25 13:58:51","UpdatedDate":"2017-05-25 16:40:08","Customer":"INDIANA LIMESTONE/OOLITIC 3646005","Latitude":null,"Longitude":null,"AssignedTo":"John Russell","CreatedBy":"Eric Alsman","Title":"CRC Inspection - Hydraulic Valve","Link":"http://mac-inspect.com/inspections/59271b5b9c5f5b3a36000a61","Dealer":"MacAllister Machine","OverallInspectionScore":10}];

console.log(response);

var earliestInspection = _.map(response, function (dt) { dt.CreatedDate = moment(dt.CreatedDate, "YYYY-MM-DD HH:mm:ss"); return dt; });
var maxinpsect = _.max(earliestInspection, _.property('CreatedDate'));
console.log(maxinpsect);

var...