Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Calculated Duration Field

(0) ShareShare
ReportReport
Posted on by

I have a custom entity that has a start and end date and I have created a calculated field to show the duration. However I have setup the formula with DiffinInMonths, but when on the record is showing up as minutes. I suspect that CRM is reading the "m" as lower case and automatically showing up as minutes, but I can't find a way to fix this.

Does anyone have an idea on how to fix this?

*This post is locked for comments

  • Verified answer
    RE: Calculated Duration Field

    Hey Lucas,

    This does indeed appear to be a bug, but if you just need the number without creating any JavaScript, do the following:

    -create a new calculated field

    -select 'None' under formatting, instead of 'Duration'

    Hope this helps.

  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,401 on at
    RE: Calculated Duration Field

    Hi

    It looks like a Bug.

    Instead of Days it says Minutes

    Please use JavaScript instead of Calculated field.

    mscrmtechie.blogspot.co.uk/.../get-difference-between-two-dates-in.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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans