Hello, I wonder why during month view start date and end date are like this? (27 - 24) not 1-30 or 1-31? and how can I make it appear dates from 1 to 30/31?
Attachments
Screenshot 2022-11-24 134447.png (31.22 KiB) Viewed 521 times
thank you, can you at least tell me how to capture correct start and end date in dateRangeChange event handler?
event.new.startDate return 27 in that case on screenshot. so I need to somehow get 1st and 30th/31th
yes I agree, I just need dates, if you look on calendar, dates from previous month are gray and dates from current month are black. I need that startDate and endDate of current month if it's possible
get startDate() {
return new Date(this.date.getFullYear(), this.date.getMonth(), 1);
},
get endDate() {
return new Date(this.date.getFullYear(), this.date.getMonth() + 1, -1);
}
Note that the is the last fully visible date inside the month. not the ending date of the month. You must decide which it is you want for your purpose. I of course do not know what your purpose is.
Data loading uses first visible date and last visible date, so this won't affect that. It just gets the information that you seem to need for your purpose.