1. Go to this page and download the library: Download flextype-components/date 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/ */
flextype-components / date example snippets
use Flextype\Component\Date\Date;
echo Date::format($date, 'j.n.Y');
$seconds = Date::seconds();
$minutes = Date::minutes();
$hours = Date::hours();
$months = Date::months();
$months = Date::days();
$days = Date::daysInMonth(1);
$years = Date::years();
echo Date::season();
echo Date::today();
echo Date::yesterday();
echo Date::tomorrow();
$dos = Date::unix2dos($unix);
$unix = Date::dos2unix($dos);
$tz = Date::timezones();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.