Hello. I am using this calendar component for date picking: https://github.com/aprildunnam/PowerApps/blob/master/Components/Calendar%20Component%20(4).msapp
But I get "wrong variable" error for _firstDayInView variable. I couldn't find the solution. Because of this error, calendar calculates date differences wrong. Here you can see the codes which gives error:
DateAdd(
_firstDayInView;
ThisItem.Value;
Days
) = _today
****************
If(
CalendarComponent.ShowCalendarEvents = false;
DateAdd(
_firstDayInView;
ThisItem.Value;
Days
) = _today;
If(
CountRows(
Filter(
CalendarComponent.CalendarItems;
DateValue(Text(Date)) = DateAdd(
_firstDayInView;
ThisItem.Value;
Days
)
)
) > 0; true;false)
)
********
If(DateAdd(_firstDayInView;ThisItem.Value;Days) = _selectedStart || DateAdd(_firstDayInView;ThisItem.Value;Days) = _selectedEnd; CalendarComponent.BorderRadius;0)


Report
All responses (
Answers (