PHP code example of hanakivan / date-formats

1. Go to this page and download the library: Download hanakivan/date-formats 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/ */

    

hanakivan / date-formats example snippets


use hanakivan\DateFormats;

$now = new \DateTime();

//prints current date, e.g. 20. 8. 2020
echo $now->format(DateFormats::DATE_FORMAT);