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 / TImeValue in edit mode
Power Apps
Unanswered

TImeValue in edit mode

(0) ShareShare
ReportReport
Posted on by 111

Hi 

 

If(Activity_Form.Mode = FormMode.Edit, Value(Text(TimeValue(Parent.Default),"[$-en-GB]HH")))

 

ShaikSayyad_0-1617186641161.png

I can able to show the HH,mm AM/PM in edit mode in my local using above Function at Default to the Drop down  but  HH, mm are not working in other regions  

did I missed something here

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

    Hi @ShaikSayyad ,

    You can try to add "en-GB" as last parameter to Text function.

    Check if below formula can work:

    If(Activity_Form.Mode = FormMode.Edit, Value(Text(TimeValue(Parent.Default),"[$-en-GB]HH","en-GB")))

    Best regards,

    Allen

  • ShaikSayyad Profile Picture
    111 on at

    Hi,

    Not worked above suggestion.

     

    I have a Text field in SharePoint which has time value like format (02:45 AM ), How do I show this Time value in edit form in three dropdwons like below screen

    ShaikSayyad_0-1617258184182.png

     

    I can able to see AM/PM with Default Function - If(Activity_Form.Mode = FormMode.Edit, Text(TimeValue(Parent.Default),"[$-en-GB]AM/PM"))

     

    but for HH dropdown - 

    If(Activity_Form.Mode = FormMode.Edit, Value(Text(TimeValue(Parent.Default),"[$-en-GB]HH"))) - Not working and 

     For mm dropdown - 

    If(Activity_Form.Mode = FormMode.Edit, Value(Text(TimeValue(Parent.Default),"[$-en-GB]mm")))

     

     

    How do I solve this

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @ShaikSayyad ,

    You can use Hour() and Minute() function to get the exact number. 

    So for HH dropdown, try this:

     

    If(Activity_Form.Mode = FormMode.Edit, Hour(TimeValue(Parent.Default)))

     

    For mm dropdown:

     

    If(Activity_Form.Mode = FormMode.Edit, Minute(TimeValue(Parent.Default)))

     

    Note: The result of "Hour(TimeValue(Parent.Default))" and "Minute(TimeValue(Parent.Default))" are both Number, so you can directly use them, do not need to convert the format again.

    v-albai-msft_0-1617358737267.png

    Best regards,

    Allen

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard