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 / AM/PM not consistently...
Power Apps
Answered

AM/PM not consistently working in canvas app

(0) ShareShare
ReportReport
Posted on by

Hello!

I have a canvas app that is generated from a SharePoint list. One field is Incident Date/Time. The field that is automatically generated in the app uses 24 hour time, but I wanted 12 hour time with AM/PM. 

 

I added a drop down and in the Items property, Clock.AmPm().  I reduced the hour drop-down item property to 01-12. It has appeared to be working, but I'm noticing that when the app content is submitted to SharePoint, if the time submitted was PM, it converts it to AM. If the time entered is AM, it stays AM. 

 

This happens MOST of the time, but not all of the time. Sometimes it works, and I can't find anything online that addresses this issue.

 

Any ideas?

 

ahartsfield_0-1706025857329.png

 

Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    could be because the timezone in your sharepoint setting are different to your app.

     

    when you save 6pm is it 6 am then in your SP list after u submitted?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • ahartsfield Profile Picture
    on at

    Thank you! No, it's not a timezone setting. If it were, then it would change it no matter what, but right now it only changes PM to AM, never AM to PM.

  • Verified answer
    ahartsfield Profile Picture
    on at

    This post's solution seemed to work for me. I need to do more testing, but my PM entry stayed PM.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Powerapps-to-Sharepoint-data-use-AM-and-PM-in-Edit-form-over/td-p/2177719

     

  • ahartsfield Profile Picture
    on at

    @WarrenBelz  Hi! I was reading your solution on a similar post and wonder if you might have time to help me?

     

    I thought I had this sorted by following a similar post that had the same solution as yours, but there is still inconsistency in the AM/PM side of things. 

     

    The canvas app was created from a SharePoint list. I added an AM/PM drop down and set all the item/default/update properties accordingly. But sometimes it puts the time through to SharePoint as AM when it should be PM. I've been banging my head against the wall trying to figure out why and have tried a variety of different things, but none have seemed to affect the result.

    Much appreciation if you have time and insight. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard