day of hard work with xkirsch #2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function openReservationForm() {
|
||||
const now = new Date();
|
||||
const formattedDate = now.toLocaleDateString('cs-CZ', { day: '2-digit', month: '2-digit', year: 'numeric' });
|
||||
const formattedDate = now.toISOString().split('T')[0]; // Format date as YYYY-MM-DD
|
||||
document.getElementById('date').value = formattedDate;
|
||||
document.getElementById('reservationForm').style.display = 'block';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user