Hi,
I have the following code but when I do it through the powerapp on a mobile device or accessing it directly it works fine however when I access through a Sharepoint site, even though the region is set to English UK, it thinks the 5/1/2022 is June!
Set(
selectedDate,
Calendar_1.StartDate
);
Set(
selectedEndDate,
Calendar_1.EndDate
);
Set(
startTime,
DateTimeValue(Text(
selectedDate,
"dd/mm/yyyy"
) & " " & ddTimeFrom.Selected.Value
)
);
Set(
endTime,
If(
DateValue(
Text(
selectedEndDate,
"dd/mm/yyyy"
)
) < DateValue(
Text(
selectedDate,
"dd/mm/yyyy"
)
),
DateTimeValue(
Text(
selectedDate,
"dd/mm/yyyy"
) & " " & ddTimeTo.Selected.Value
),
DateTimeValue(
Text(
selectedEndDate,
"dd/mm/yyyy"
) & " " & ddTimeTo.Selected.Value
)
)
);
How do I get the startTime to stick to dd/mm/yyyy ??
Thanks
David

Report
All responses (
Answers (