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 / Converting Now() to a ...
Power Apps
Unanswered

Converting Now() to a Number

(0) ShareShare
ReportReport
Posted on by 283

Hi.  I'm not sure if the best way to approach this but here is what I'm trying to do.  I want to record the first time someone captures times in my app.  From there, I want to compare the current time to the start time and flag it after it hits certain breakpoints.

 

1) Identify the first time entry.

2) Convert it to a number (StartTime)

3) Convert now() to a number (CurTime)

4) Set my message visible to If(CurTime-StartTime>4.05,true,false)

 

Here is what I've done:

- I can identify the start time by creating a gallery filtered using FirstTime.  This gives me my start time.

- I set up a timer to refresh my now() every second to ensure my current time is always up to date

 

I'm thinking I might be able to do Value(Now()) - Value(Today()) to get the numerical value of the time.  However, I'm not sure how to convert that into something useable. 

 

Categories:
  • dyee4614 Profile Picture
    283 on at

    Nevermind - I just realized I can use dateadd + hours

  • mdevaney Profile Picture
    29,993 Moderator on at

    @dyee4614 

    Is the issue solved?

  • KrishnaV Profile Picture
    5,023 on at

    Hi @dyee4614 ,

     

    Please see the below possible ways to convert the Now() to a number

    Text(Now(),DateTimeFormat.LongTime24)// this will give as 12:52:38 (hh:mm:ss), if you want we can remove : and make it as 125238

    Converting Now to number.png

    I hope this resolved your issue if you see any challenge/need further help let me know I am always happy to help.

     

    Regards,
    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard