web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / default hour based on ...
Power Apps
Unanswered

default hour based on new item from saved value

(0) ShareShare
ReportReport
Posted on by 83

I've been struggling with a default date and time selector and seems i have to select the value or it will just set itself to "00"

 

My default value for the hour is if its a new form item:

If(_NewMode, Text(Hour(_CopiedStartTime),"00"),Text(Hour(Parent.Default),"00"))

 

I have this on the new form item button

NewForm(Form2);
UpdateContext({_NewMode: true});
UpdateContext({_CopiedStartTime: RentalItemsGallery.Selected.Start});
UpdateContext({_CopiedFinishTime: RentalItemsGallery.Selected.Finish});

 

And on the Update for the datacard:

TRDate.SelectedDate + Time(Value(HourValue3.Selected.Value), Value(MinuteValue3.Selected.Value), 0)

 

Where TRDate.SelectedDate is a value from another form on the page 

 

The default actually shows the correct value but when submitted it returns as "00"

 

what am i doing wrong here?

 

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard