Copd (Voltido Trio Strip Pack POB)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s Details

This commit is contained in:
zeeshan 2026-08-17 15:31:01 +05:30
parent 063d562c11
commit 91b5cc6c29
1 changed files with 17 additions and 20 deletions

View File

@ -354,30 +354,27 @@
var recordDateField = document.getElementById('field-record_date');
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
function formatDate(date) {
return date.getFullYear() + '-' +
String(date.getMonth() + 1).padStart(2, '0') + '-' +
String(date.getDate()).padStart(2, '0');
}
function formatDate(date) {
return date.getFullYear() + '-' +
String(date.getMonth() + 1).padStart(2, '0') + '-' +
String(date.getDate()).padStart(2, '0');
}
var todayDate = formatDate(today);
var tomorrowDate = formatDate(tomorrow);
var todayDate = formatDate(today);
var tomorrowDate = formatDate(tomorrow);
// 13 August ला फक्त 13 August
recordDateField.setAttribute('min', tomorrowDate);
recordDateField.setAttribute('max', tomorrowDate);
// 13 August ला फक्त 13 August
recordDateField.setAttribute('min', '2026-08-13');
recordDateField.setAttribute('max', todayDate);
// 14 August पासून:
// min = 13 August
// max = today
if (today.getDate() >= tomorrow.getDate()) {
recordDateField.setAttribute('min', tomorrowDate);
recordDateField.setAttribute('max', todayDate);
}
// 14 August पासून:
// min = 13 August
// max = today
});
</script>
</body>