Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Can you sum Time?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,848 Super User 2024 Season 2 on at
    RE: Can you sum Time?

    Hi, hope the following will help.

    Working with Duration Data Type:

    https://yzhums.com/9273/

    Thanks.

    ZHU

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Can you sum Time?

    See if Duration Data type gonna help you?

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,056 on at
    RE: Can you sum Time?

    Hi,

    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.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: Can you sum Time?

    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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans