<?php date_default_timezone_set('Asia/Calcutta');?>
<select name="date">
    <?php
    // Get the current month and year
    $currentMonth = date('m');
    $currentYear = date('Y');
    $numDays = date('t');

    // Loop through the days of the current month and generate options for each day
    for ($day = 1; $day <= $numDays; $day++) {
        // Get the day of the week for the current date
        $dayOfWeek = date('w', mktime(0, 0, 0, $currentMonth, $day, $currentYear));
        // Convert the day of the week number to its corresponding name
        $dayName = date('l', mktime(0, 0, 0, $currentMonth, $day, $currentYear));
        // Format the date in "DayName, dd-mm-yyyy" format
        $formattedDate = "$dayName, $day-$currentMonth-$currentYear";
        echo "<option value='$formattedDate'>$formattedDate</option>";
    }
    ?>
</select>

