PHP code example of ministryofjustice / date-utils
1. Go to this page and download the library: Download ministryofjustice/date-utils library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ministryofjustice / date-utils example snippets
$date = WorkingDays::workingDaysFrom(new \DateTime('2014-01-01'), 1);
//$date will be set to 2014-01-02 which is the next working day