
## SetCalendar {#setcalendar}

Set a calendar for recurring task. The calendar is selected from project calendar collection.

**Returns:** void Aspose::Tasks::

```cpp
SetCalendar(const System::SharedPtr< Project > & project, const System::String & calendarName)
```

| Parameter | Description |
| --- | --- |
| project | The project with calendar collection. |
| calendarName | The name of calendar. |

