PHP code example of aloko / nova-persian-datepicker
1. Go to this page and download the library: Download aloko/nova-persian-datepicker 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/ */
aloko / nova-persian-datepicker example snippets
use Aloko\PersianDatepicker\PersianDate;
use Aloko\PersianDatepicker\PersianDateTime;
PersianDate::make('date_of_birth'), // For date fields
PersianDateTime::make('check_in') // For datetime fields
PersianDate::make('date_of_birth')->format('YYYY-MM'), // This will only print year and month
PersianDateTime::make('check_in')->format('hh:mm') // This will only show hours and minutes