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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Calculate DiffinDays but getting an error on DateTime field

(0) ShareShare
ReportReport
Posted on by 177

I'm trying to use DiffInDays but getting a strange error, is there a workaround for this? 

DiffInDays(NOW(), acct_date)

You can't use acct_date, which is of type dateTime, with the current function. 

acct_date is a Timezone Independent field.

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Calculate DiffinDays but getting an error on DateTime field

    Hi,

    Can you make sure DateTime field matches following configuration:

    pastedimage1595427552163v1.png

    Best,

    Wahaj

  • saturation Profile Picture
    177 on at
    RE: Calculate DiffinDays but getting an error on DateTime field

    Hi - yes, even changed to Date Only, published, and tried to recreate the calculation again--but still the same error message, unfortunately.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 115

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans