I created a date picker data card in List Settings, an added time picker controls in Power Apps. The requester should be able to enter their start date and time, and end date and time.
These are the steps I used:
1. create a Timer, Set Duration:1000, Enable Repeat and Auto start, Disable Auto pause, Set OnTimerStart: Set(VarCurrent,Now())
2. unlock the data card, add a dropdown in it, rename to AmPmValue1,
set Items: ["AM","PM"]
set Default: If(Hour(VarCurrent) < 12, "AM", "PM")
3. modify property of HourValue:
Items: ["12","01","02","03","04","05","06","07","08","09","10","11"]
Default: Text(If(Mod(Hour(VarCurrent), 12) = 0, 12, Mod(Hour(VarCurrent), 12)),"[$-en-US]00")
4. modify property of MinuteValue:
Default: Text(Minute(VarCurrent),"[$-en-US]00")
5. Modify property of data card:
Update: DateValue1.SelectedDate + Time(If(AmPmValue1.Selected.Value = "PM", 12, 0) + Mod(Value(HourValue1.Selected.Value), 12), Value(MinuteValue1.Selected.Value), 0)
Users select the form from a calendar view
I tested this initially with start date and time and submitted the form.
The output written to the list is the date and time the form is submitted, not the user selected date and time, which is what I need it to be.
I want users to see when items are reserved and new reservations to populate the calendar with the in and out time displayed on the correct dates chosen.
Can someone please help?

Report
All responses (
Answers (