update form inspeksi and basic data inspeksi
This commit is contained in:
@@ -210,7 +210,11 @@
|
||||
},
|
||||
due_date: {
|
||||
title: 'Due Date',
|
||||
render: (item, data) => `${data.due_date || ''}`,
|
||||
render: (item, data) => {
|
||||
const mulai = new Date(data.permohonan.created_at);
|
||||
const selesai = new Date(data.tanggal_kunjungan)
|
||||
return `${mulai.getDate()}-${mulai.getMonth() + 1}-${mulai.getFullYear()} - ${selesai.getDate()}-${selesai.getMonth() + 1}-${selesai.getFullYear()}`
|
||||
},
|
||||
},
|
||||
paparan: {
|
||||
title: 'Paparan',
|
||||
@@ -236,6 +240,11 @@
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function formatDateFromISO(isoDateString) {
|
||||
const date = new Date(isoDateString);
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
|
||||
Reference in New Issue
Block a user