Hey experts,
I'm new to PowerApps and I have a strange format problem with my DateTime in the RemoveIf function. The problem depends on the language settings of the user and I don't know how to fix this.
I'm currently developing a Leave Request App, where employees can select a date range for their request.
From that date range (range stored in DateRange collection) the weekends and also holidays (stored in a SP-list named HolidaysGermany) should be removed.
The DateRange gets filled like this:
ClearCollect(
DateRange,
AddColumns(
FirstN(
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29],
DateDiff(Calendar_1.StartDate, Calendar_1.EndDate, Days) + 1),
"Day",
"Day " & (Value + 1),
"Date",
DateAdd(Calendar_1.StartDate, Value, Days)
,"Type",selectedType.type,"Hours","8","Person",_curUser));
I had several tries for the removal at the beginning that didn't work:
RemoveIf(DateRange, DateValue(Text(Date,"[$-en-US]dd.mm.yyyy")) in HolidaysGermany.DateOfHoliday || Weekday(Date) = 1 || Weekday(Date) = 7);
RemoveIf(DateRange, DateValue(Text(Date,"[$-de-DE]dd.mm.yyyy")) in HolidaysGermany.DateOfHoliday || Weekday(Date) = 1 || Weekday(Date) = 7);
And the removal finally worked with this:
RemoveIf(DateRange, DateValue(Text(Date,"[$-en-US]mm/dd/yyyy"))in 'HolidaysGermany'.DateOfHoliday || Weekday(Date) = 1 || Weekday(Date) = 7);
This works like a charm, as long as the browser language or MS Teams is set to english!
Working Example
SP-List "HolidaysGermany":

Selected DateRange:

Will give me the expected result of 2 days, since 4/9/2020 and 4/14/2020 are business days in germany:

Chrome is always set to use english as default language on my PC, so if I use Firefox, the holidays will not be removed.
NOT working example
Same DateRange:

Different result:

I'm desperate with this problem. We have international colleagues as well, so the best thing would be if the app does this comparison in the RemoveIf correctly, regardless of the language settings.
Is there a way to set the language in the app regardless of the language settings of the PC or browser of the employee?
Any help is appreciated!
Thanks and best regards