web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Time in hh:mm on a field in form

(0) ShareShare
ReportReport
Posted on by 87

Hello,

I am making a form that contains a field in which hours and minutes are entered. In this field I want to enter weekly hours, therefore a number of hours greater than 24. But, I want to respect that the minutes do not exceed 60. For example, 60 hours and a half, it should be 60:30 instead of 60:50.

I can't find any dataype that meets the requirement, the closest one is TimeHour24 but it doesn't support values greater than 24. I have thought about using strings but I don't think it is the best idea to make calculations.

Any advice?


Thanks.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I suspect that you'll indeed need to use a string. It might be a string display method validating the data and saving it as a numeric field under the hood.

    You could also create a custom control, but I wouldn't do it. While it might do a great job at the moment, you won't be able to upgrade it to F&O.

  • Deepak Agarwal Profile Picture
    8,602 on at

    Hello,

    You can try to use a real data time along with a help text which may say an example of entering data like 60.50 instead of 60.30 or vise versa, and validate the value. You can explore Project timesheet form.  

  • Eisenberk Profile Picture
    87 on at

    Thanks Martin, I used a String, then validated it with Regex.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans