PHP code example of traderinteractive / filter-dates

1. Go to this page and download the library: Download traderinteractive/filter-dates 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/ */

    

traderinteractive / filter-dates example snippets


$dateTime = \TraderInteractive\Filter\DateTime::filter('2014-02-04T11:55:00-0500');

$formatted = \TraderInteractive\Filter\DateTime::format($value, 'Y-m-d H:i:s');

$timezone = \TraderInteractive\Filter\DateTimeZone::filter('America/New_York');

$timeOfDay = \TraderInteractive\Filter\TimeOfDayFilter::filter('12:00:59');