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.

 1$project = new Project('test_tasks.mpp');
 2
 3$cal1 = $project->getCalendars()->add("My Cal");
 4
 5$calendar = new Calendar();
 6
 7$calendar->makeStandardCalendar($cal1);
 8
 9$saveFileFormat = new SaveFileFormat();
10
11$project->save("CreateStandardCalendar.xml", $saveFileFormat->XML);
12
13print "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:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.