Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Move forward date field using workflow

Posted on by Microsoft Employee

I am using a workflow to add 6 months to a date field but doesn't quite work as I intended.

ex: 28/02/2017 + 6 months = 28/08/2017 not 31/08/2017 

Is there a way to have 28/02/2017+6 months = 31/08/2017

*This post is locked for comments

  • Panky Profile Picture
    Panky 155 on at
    RE: Move forward date field using workflow

    Kindly mark the answer as verified, if it is successfully executed.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Move forward date field using workflow

    thank you, will give it a try

  • Suggested answer
    Panky Profile Picture
    Panky 155 on at
    RE: Move forward date field using workflow

    Hi, the above condition can be fulfilled only through custom workflow.

    DateTime StartDate = 28/02/2017;

    DateTime EndDate = 28/02/2017 + 6 months (Temporary); i.e. 28/08/2017

    DateTime FinalDate=  new DateTime(EndDate.Year,EndDate.Month,31);

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Move forward date field using workflow

    Hi,

     you'll need to develop a custom workflow activity for that

    msdn.microsoft.com/.../gg334455.aspx

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans