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 Apps
Answered

DATES FORMAT

(0) ShareShare
ReportReport
Posted on by 19

Pls how can i update this data card to ensure the correct pick of either am or pm

DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0)

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @majorpinpin ,

     

    Would you please elaborate the requirement ? 

    if you are trying to convert a date into AM or PM below code will help. 

     

    DateTimeValue(Text("YourDateTimeValue",DateTimeFormat.LongDateTime))
  • majorpinpin Profile Picture
    19 on at

    Thank you

    I have a sharepoint list as a data source, the start time and  end time has "time and date" as data type and when connected to my powerapps gave me a dropdown of numbers. When users try to pick a start and end time, they cant differentiate when its AM or PM and this is giving the wrong total hours spent on an activity on my share point list.

    So i need a function to have a dropdown of AM & PM. So i am asking if i can get a function to update the data card

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @PriyankaGeethik,

    Based on the issue that you mentioned, do you want to change the time format from 24 hour to 12 hour?

    Actually, you could change it from the SharePoint site directly.

    1). Go to the gear icon and select the Site Information>View all site settings

    vqiaqimsft_1-1627956603778.png

    2). Choose the Regional settings, change the time format

    vqiaqimsft_0-1627956422422.png

    vqiaqimsft_2-1627956769287.png

    What's more, you should pay attention that if you just want to do date difference calculation, you could do this using the Text() function.

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard