# Task Deadline

## Content



Task deadline enables you to monitor each and every activity involved within a project. GanttView supports deadlines that allow you to keep a track of tasks exceeding their set deadline dates by displaying a red indicator. This indicator appears next to the tasks which have exceeded their deadline and displays a message upon hovering. In addition to a red indicator, GanttView also displays a downward arrow in the task bar as shown in the following image.

![Deadline indicator in GanttView](https://cdn.mescius.io/document-site-files/images/14a478dc-2b0f-437a-969b-b17e430e375e/images/deadline.png)

To set the deadline for a particular task, you can use <span data-popup-content="This property is available in \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.GanttView.Task.Deadline.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.GanttView.Task.Deadline.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="Deadline" data-popup-theme="ui-tooltip-green qtip-green">Deadline</span> property provided by the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.GanttView.Task.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.GanttView.Task.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="Task" data-popup-theme="ui-tooltip-green qtip-green">Task</span> class. The **Deadline** property accepts an object of the DateTime class to set the deadline date as demonstrated in the following code. This example uses the sample created in [Quick Start](/componentone/docs/wpf/online-ganttview/GanttView-QuickStart).

```csharp
//Setting deadline
t.Deadline = new DateTime (2022, 4, 22);
```

Alternatively, task deadlines can be set at runtime through the [Task Information dialog](/componentone/docs/wpf/online-ganttview/dialogboxes/Task-Information-Dialog), which can be accessed by clicking the **Task Information** button from the [Toolbar](/componentone/docs/wpf/online-ganttview/GanttView-Toolbar).