Enhance calendar functionality: display year in month header, highlight past dates, and update date selection logic

This commit is contained in:
nessar committed 2025-10-30 01:18:26 +01:00
1 parent 6bc03be89a
commit 7fc7653e6f
6 files changed
+71 -14

No files matched your search

@@ -16,6 +16,12 @@ export class CalendarMonth implements OnInit {
@Input({ required: true })
year!: number;
getNow(): Date {
const now = new Date();
now.setHours(0, 0, 0, 0);
return now;
}
currentMonth: Date = new Date();
weeksInAMonth: Month = [];