PHP code example of sanjabteam / sanjab-persian-date-picker
1. Go to this page and download the library: Download sanjabteam/sanjab-persian-date-picker 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/ */
sanjabteam / sanjab-persian-date-picker example snippets
use SanjabPersianDatePicker\PersianDatePickerWidget;
// Date only
$this->widgets[] = PersianDatePickerWidget::create('birth_date')
->rules('jdate_before:'.verta()->formatDate())
->