Announcements
No record found.
Hi,
I would like to know if you can sum Time variables. My goal is to be able to sum Times of a client to be able to invoice correctly.
Thanks.
Jorge Ramos Carol
You can see here how you can calculate duration:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/duration/duration-data-type
That should let you sum duration for different time periods.
You can subtract datatype time in Business Central, but you can't add time datetype. Only an integer can be added to time. The amount of milliseconds to increase is an integer. You could convert an integer to a second time.
If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.
See if Duration Data type gonna help you?
Hi, hope the following will help.
Working with Duration Data Type:
https://yzhums.com/9273/
ZHU
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 727 Super User 2026 Season 2
YUN ZHU 512 Super User 2026 Season 2
Grigorios Mavrogeorgis 321 Super User 2026 Season 2