Skip to content

DeadlineDate

Gets or sets the deadline date and time of the work item.

1
 DateTimeOffset myWorkItem.DeadlineDate

Remarks

If no deadline date is set, this property returns null.
If the WorkItem.State is not in Waiting or Created, attempting to set this property is prohibited and throws an access denied error.
New deadline dates should be created using 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