Skip to content

DeadlineDate

Gets or sets deadline date of a work item.

1
 DateTimeOffset myWorkItem.DeadlineDate

Remarks

If no deadline date set returns null.
If state is not in Waiting or Created, trying to set this property is prohibited, and an access denied error will be thrown.
New deadline date should be created using the DateTimeOffset.

Example

1
2
3
4
5
// Checking the current deadline date:
var date = $WorkItem.DeadlineDate;

// Setting the new deadline date:
$WorkItem.DeadlineDate = DateTimeOffset.parse('2019-08-22 10:15:00');

See Also