MRu
MRu

Reputation: 1395

How to capture date out in sharepoint?

I have a requirement to capture date in and date out. date in is when the task is created. date out is when the task has been completed and assigned to a new checker. date in I can just set the default value to today's date in list settings but how can I set the date out In list settings or programatically in state machine workflow? I know there's a way to set the date in from state machine workflow which is by using startdate

createtask1_TaskProperties1.StartDate = DateTime.Now;

Is there a similar way to set the date for date out?

Upvotes: 0

Views: 298

Answers (1)

Sigar Dave
Sigar Dave

Reputation: 2654

I have not worked with State machine workflow but may be you can use TaskProperties.DueDate = DateTime.Today.AddDays(5.0);

Let me know does it help or not ?

Thanks

Upvotes: 0

Related Questions