You have canceled your appointment on
function getCurrentDateTime() {
const now = new Date();
// Extract the components of the date and time
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // Months are zero-based, so add 1
const day = String(now.getDate()).padStart(2, '0');
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
// Format the date and time string
return `${year}-${month}-${day} ${hours}:${minutes}`;
}
function updateAppointmentMessage() {
const dateTimeString = getCurrentDateTime();
const messageElement = document.getElementById('appointment-message');
messageElement.textContent += ` ${dateTimeString}`;
}
// Update the message when the page loads
updateAppointmentMessage();
Please rebook here or perhaps modify your appointment here.