PHP code example of tahaazare / dual-date-converter

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

    

tahaazare / dual-date-converter example snippets


use App\Helpers\DualDateHelper;

DualDateHelper::toGregorian('13820821');    // 2003-11-12
DualDateHelper::toJalali('2003-11-12');     // 1382-08-21