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

time only no date

(0) ShareShare
ReportReport
Posted on by 270

hi all,

 

i have an OnSelect pulling the current UTC time on press into a collection example output: (2021-04-16T02:26:59.112Z) 

 

the format as it is needs to stay in the collection for data collection purposes.

 

however, i want to just display the TIME in a textbox.

 

if i put the default to

 

text(readyTime,"hh:mm:ss")

 

it doesn't register.

 

i'm assuming this is because it's not picking up that UTC string as a datetime? 

 

how can i get around this but keeping the datetime string and just extracting the time from it

Categories:
I have the same question (0)
  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @mrleetyler ,

    If it's originally a text type, you should be able to convert it to datetime and then extract the time as text again - The idea would be convert the text to datetime, (which automatically applies a timezone offset), then adjust for timezone offset, then reference the hours, minutes and seconds.

    Try this;

     

    Text(DateAdd(DateTimeValue(readyTime, "en-US"), TimeZoneOffset(), Minutes), "[$-en-US]hh:mm:ss")

     

    Hope this helps,

    RT

     

  • mrleetyler Profile Picture
    270 on at

    perfect thanks so much!

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