Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

DIFFINDAYS function error - tried common solutions

(0) ShareShare
ReportReport
Posted on by 789

Hi,

So I am trying to calculate the difference in days between two custom fields. Both fields are set to user local and "date and time."

I have not put the fields into a form yet, as I made the two fields right before attempting to make the calculated field. 

I've attached a picture of the error - any help would be appreciated. I've used this formula before with no issues, so really unsure of what's going on.

 diffindays-error.PNG

*This post is locked for comments

  • Ben T Profile Picture
    Ben T 789 on at
    RE: DIFFINDAYS function error - tried common solutions

    Omg...wow. Simplest fix I've ever experienced with the CRM. Thanks!!

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: DIFFINDAYS function error - tried common solutions

    Hello Ben,

    Try to use , instead of - between fields like

    DIFFINDAYS(field1, field2)

  • Ben T Profile Picture
    Ben T 789 on at
    RE: DIFFINDAYS function error - tried common solutions

    I also have the calculated field set to whole number.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

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,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans