PHP code example of jongotlin / danish-dates-bundle
1. Go to this page and download the library: Download jongotlin/danish-dates-bundle 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/ */
jongotlin / danish-dates-bundle example snippets
new JGI\DanishDatesBundle\JGIDanishDatesBundle(),
$date = $container->get('jgi.danish_dates.datemanager')->getDate(new \Datetime('2018-01-01'));
echo $date->getDateTime()->format('Y-m-d') . ": " .
($date->isRedDay() ? 'red day' : 'not red day') . ' - ' . $date->getName();
// 2018-01-01: red day - Nytårsdag