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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Calculated field with dateTime fields

(0) ShareShare
ReportReport
Posted on by

i have created two Date &time field with the following details.

Calculated-field.JPG

then I created another total time field, with data type as Date&time and Field type is Calculated. while giving action to the calculated field i am getting the follwing error:

You can't use new_startdate, which is of type dateTime, with the current operator.

can anyone  help me in this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Change the format to Date only

    Refer this:

    www.summitgroupsoftware.com/.../diffindays-calculated-field-datetime-fields

  • Suggested answer
    Community Member Profile Picture
    on at

    Your Calculated field data Type should be Whole Number or decimal if you are trying to calculate duration.

  • Varadarajan_84 Profile Picture
    on at

    Hello Vijay,

    Unfortunately, You cannot use Calculation field to calculate two dates..

    Source:

    blog.sonomapartners.com/.../dynamics-crm-2015-calculated-and-rollup-fields.html

    "Unfortunately I don't think you can subtract two dates. I just tried this in a calculated field (new_date1 - new_date2) and I got an error "You can't use new_date1, which is of type dateTime, with the current operator"."

    And I tried it before, not supported.

    Try to refer this link as well.

    community.dynamics.com/.../357056

    You can Try to achieve this by using Workflow or JavaScript as mentioned here in this

    Example :

    us.hitachi-solutions.com/.../duration-calculations-in-crm-with-little-or-no-customizations

    I Hope this helps you.

    Thanks.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans