applied reps documents naming conventions
This commit is contained in:
@@ -145,8 +145,15 @@ const TopThree = (props) => {
|
||||
};
|
||||
|
||||
const repRaisedDate = (datePart) => {
|
||||
var dateObj = new Date(parseInt(datePart.split("-")[3]));
|
||||
return dateObj.toLocaleString();
|
||||
var dateObj = new Date(
|
||||
datePart.split("-")[0] +
|
||||
"-" +
|
||||
datePart.split("-")[1] +
|
||||
"-" +
|
||||
datePart.split("-")[2]
|
||||
);
|
||||
|
||||
return dateObj.toLocaleDateString();
|
||||
};
|
||||
|
||||
let topThreeOnlyArr = showTopThreeArr.slice(0, 3);
|
||||
|
||||
Reference in New Issue
Block a user