+
+
+
+
+ modify('first day of this month');
+ $daysInMonth = $startDate->format('t');
+ $dateArray = [];
+
+ for ($i = 0; $i < $daysInMonth; $i++) {
+ $dateArray[] = $startDate->format('d-m-Y');
+ $startDate->modify('+1 day');
+ }
+ } else {
+ echo "Invalid date format.";
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+