Manipulate date fields by adding or subtacting days to a DateTime fields in Microsoft Dynamics CRM using workflow activity
Source: ManipulationLibrary In this blog I am going to explain how to manipulate a date field in Dynamics CRM 2013 using plugin workflow activity. This workflow allows days to be added/ subtracted to date field in CRM. 1. For creating this Workflow activity using plugin Open Visual studio and just proceed similarly as you do for creating any plugin i.e add necessary references, etc. 2. Now add a class file for and name it accordingly and add below code for Adding days to date:: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Activities; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Workflow; namespace AddSubtractDate { public sealed class AddDays : CodeActivity { protected override void Execute(CodeActivityContext executionContext) { var result = new DateTime(); var start = StartDate.Get<DateTime>(executionContext)