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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Add Days to a Date

(0) ShareShare
ReportReport
Posted on by 15

Hello all, I would like to simply add days to a date already set with a calculated field. I do not know the formula to do so.

Example:

I have a date 01/01/2020 I would like to add 30+ days to this date, making the date 01/31/2020. What formula do I enter into the calculated field.

Secondly, I also would like to calculate an "End of Month" field. So this would be for another date field. If I have that date set and I wanted to calculate the end of the month from a set date in another field. What would be the formula for that?

Thank you all,

I have the same question (0)
  • Suggested answer
    Paul_Owen Profile Picture
    2,027 on at

    Hi, you could create a business rule and set the field value Type to formula and add the 30 days however, I'm not 100% if this will work for a calculated field but you can test that.

    As for the end of month field are you trying to get how many days left in the month? you could create a calculated field and use the diffindays operator to get how many days left.

    pastedimage1578581912624v1.png

    Regards

    Paul

  • UDA_Solomon Profile Picture
    15 on at

    Outside of the Business rule, there is a "ADDDAYS()" function in the calculated date field. I just dont know the formula to do so.

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at

    Hello,

    You can add the below line in the ACTION section of the calculated field:

    ADDDAYS (whole number(no of days), date and time(source Datetime field in which you want to add the 30 Days))

    for more details, you can follow below links:

    https://www.encorebusiness.com/blog/dynamics-crm-calculated-fields/ 

    https://dynamicsofdynamicscrm.com/2015/01/13/useful-to-know-calculated-fields-functions-and-considerations-for-dynamics-crm-2015/\

    Hope It will be helpful

  • UDA_Solomon Profile Picture
    15 on at

    Thank you so much.

    I want to add 1 month or the next month to the current date. How do I do that?

  • Suggested answer
    Community Member Profile Picture
    on at

    For date  field different formaulas like AddDays, AddMonths are available. You can choose required formula to do the job.

    pastedimage1579661442772v2.png

    for end of month field you can write a flow to calculate end of month date and update the field.

  • rexkenley Profile Picture
    110 on at

    Hi UDA

    Check this libray.

    date-fns.org/.../endOfMonth

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans