const currentDate = new Date();
// Format date DD/MM/YYYY
function formatDate(date) {
const day = String(date.getDate()).padStart(2, '0');
const month = String(date.getMonth() + 1).padStart(2, '0'); // Month init 0
const year = date.getFullYear();
return
${day}/${month}/${year};
}
const humanFriendlyDate = formatDate(currentDate);
return humanFriendlyDate;