Exclude weekends from task dates

Exclude weekends from task dates

How can you exclude weekends from task dates? So that, for example, a 10 day task is allocated only to weekdays, and the gantt chart shows weekends blank.