Creating a Calendar in PHP

Aspose.Tasks - Creating a Calendar

To create a Calendar using Aspose.Tasks Java for PHP, simply invoke CreateCalendar module. Here you can see example code.

$project = new Project('test_tasks.mpp');
$cal1 = $project->getCalendars()->add("no info");
$cal2 = $project->getCalendars()->add("no name");
$cal3 = $project->getCalendars()->add("cal3");
$saveFileFormat = new SaveFileFormat();
$project->save("CreateCalendar.xml", $saveFileFormat->XML);
print "Created calendar, please check the output file.";

Download Running Code

Download Creating a Calendar (Aspose.Tasks) from any of the below mentioned social coding sites: