PHP code example of fabiang / dateparser
1. Go to this page and download the library: Download fabiang/dateparser 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/ */
fabiang / dateparser example snippets
use Fabiang\Dateparser\RFC3339;
$parser = new RFC3339();
$datetime = $parser->parse('2017-07-25T18:37:40+02:00'); // DateTime object