Making a Standard Calendar in PHP

Aspose.Tasks - Making a Standard Calendar

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

$project = new Project('test_tasks.mpp');
$cal1 = $project->getCalendars()->add("My Cal");
$calendar = new Calendar();
$calendar->makeStandardCalendar($cal1);
$saveFileFormat = new SaveFileFormat();
$project->save("CreateStandardCalendar.xml", $saveFileFormat->XML);
print "Created standard calendar, please check the output file.";

Download Running Code

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