Skip to content
Snippets Groups Projects
Commit a0235106 authored by yazSpaz's avatar yazSpaz
Browse files

date formatting for viewing tests

parent 60f437b1
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,11 @@ $(document).ready(function () {
{ title: "Surname", data: "surname" },
{ title: "Score", data: "score" },
{ title: "Time Taken", data: "time_taken" },
{ title: "Attempt Date", data: "attempt_date" }
{ title: "Attempt Date", data: "attempt_date",
render: function(data, type, row) {
if (!data) return ""; // Handle null or empty values
return data.split("T")[0]; // Extract only the date (YYYY-MM-DD)
} }
]
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment