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 / Date/Time correct in p...
Power Apps
Answered

Date/Time correct in power apps gallery but not the form

(0) ShareShare
ReportReport
Posted on by 41

Hi,

I'm relatively new to PowerApps. I've built a canvas app with a screen where on the left is a gallery and the right shows the form related to the item selected in the gallery. One of the pieces of data that appears in the gallery and the form is a date+time. The source of the data is a sharepoint list.

In the gallery, the date+time correctly reflects what's in the Sharepoint site (the sharepoint site doesn't show the correct time the email was actually received but that's a problem for another day). See below:

Emily2_0-1667486418656.png

However when I click on this entry and look at the form it tells me:

Emily2_1-1667486460441.png

 

This entry is fine:

Gallery - 

Emily2_2-1667486493604.png

Form - 

Emily2_3-1667486514668.png

 

But this entry isn't:

Gallery - 

Emily2_4-1667486547908.png

Form - 

Emily2_5-1667486566484.png

 

So I think the form doesn't like when the hour or minute of the time starts with a '0'. But why not? This is what I can't figure out. Ideas much appreciated!

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Emily2 ,

     

    Could you share the formula and screenshots?

     

    Best Regards,

    Wearsky

  • Verified answer
    Emily2 Profile Picture
    41 on at

    Hi @v-xiaochen-msft 

    Thank you so much for responding, and apologies for not getting back sooner. There's too much sensitive data in the screenshot to be able to send one over easily, even blanked out. But I have been able to resolve this this afternoon with an If function.

    The Default property of the hour and minute values was:

    Minute(Parent.Default)

     I have now changed it to the below, which works well.

    If(Minute(Parent.Default)<10,Concatenate("0",Text(Minute(Parent.Default),"#")),Text(Minute(Parent.Default),"0"))

     

    Thanks again for responding! Emily

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 471

#2
WarrenBelz Profile Picture

WarrenBelz 395 Most Valuable Professional

#3
11manish Profile Picture

11manish 279

Last 30 days Overall leaderboard