cancel
Showing results for
Did you mean:
New Member

## Convert time to integer

Hey,

i'm working on a small Project and i'm kind of stuck on this particular point. I have a input box which returns a time value (normally written in the format hh:mm), and i want to convert this to an integer corresponding to a percentage of an hour bascially. For example, 00:30 would give 0.5, 01:15 would give 1.25 etc. I can't seem to find a way to do this.

The function that has this is called from a button, and for now contains this :

evsInput.Text & " heure(s) à " & LookUp(typeEVS;TypeEVS = Dropdown1.SelectedText.Value;Coef) & " = " & 10*(evsInput.Text)*LookUp(typeEVS;TypeEVS = Dropdown1.SelectedText.Value;Coef)

evsInput is my text input, and I just find the coefficient I need in my excel table, and then want to calcuate the pay rate for this amount of time. For now i'm just multplying the text input by 10 (base pay rate) and the coefficient.

I'd love any help you got 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Ok well i just found how to do it, just have to convert minutes into hours (mm/60) and then add the hours and converted minutes.

New Member

Ok well i just found how to do it, just have to convert minutes into hours (mm/60) and then add the hours and converted minutes.

Announcements

#### April 4th Copilot Studio Coffee Chat | Recording Now Available

Did you miss the Copilot Studio Coffee Chat on April 4th? This exciting and informative session with Dewain Robinson and Gary Pretty is now available to watch in our Community Galleries!   This AMA discussed how Copilot Studio is using the conversational AI-powered technology to aid and assist in the building of chatbots. Dewain is a Principal Program Manager with Copilot Studio. Gary is a Principal Program Manager with Copilot Studio and Conversational AI. Both of them had great insights to share with the community and answered some very interesting questions!     As part of our ongoing Coffee Chat AMA series, this engaging session gives the Community the unique opportunity to learn more about the latest Power Platform Copilot plans, where we’ll focus, and gain insight into upcoming features. We’re looking forward to hearing from the community at the next AMA, so hang on to your questions!   Watch the recording in the Gallery today: April 4th Copilot Studio Coffee Chat AMA