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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Format duration as .Net timespan format?

(0) ShareShare
ReportReport
Posted on by 6,073

Hi Experts,

Does NAV FORMAT function format duration as .Net timespan format?

For example, "2 days 3 hours 4 minutes 5 seconds 6 milliseconds" as "02 03:04:05.006".

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Something like this?

    Format(MyDuration,0,'<Days,2> <Hours24,2>:<Minutes,2>:<Seconds,2>)'

  • 4BzSoftware Profile Picture
    6,073 on at

    Thank Alexander!

    I tried as you mentioned before, it didn't work with duration so I posted this thread.

  • IshwarSharma Profile Picture
    729 on at

    Were you able to find a solution to this?

  • Suggested answer
    IshwarSharma Profile Picture
    729 on at

    Found a solution and created a post - ishwar-nav.blogspot.in/.../duration-to-timespan-in-nav.html

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans