PHP code example of lee / carbon-extended
1. Go to this page and download the library: Download lee/carbon-extended 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/ */
lee / carbon-extended example snippets
use Lee\CarbonExtended;
$date = '2013-03-17';
$customizedFormat = 'QTR.';
$carbonExtended = CarbonExtended::createFromFormat('Y-m-d', $date);
$result = $carbonExtended->extendedFormat($customizedFormat); // 1