PHP code example of bupy7 / yii2-date-range-picker
1. Go to this page and download the library: Download bupy7/yii2-date-range-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/ */
bupy7 / yii2-date-range-picker example snippets
echo $form->field($model, 'date_range')->widget(DateRangePicker::className(), [
'pluginOptions' => [
// see http://www.daterangepicker.com/#options
],
'pluginEvents' => [
// see http://www.daterangepicker.com/#events
],
// Language of plugin. If `null` then `\yii\base\Application::language` will be used.
'language' => 'ru',
// Converting date format from PHP DateTime to Moment.js DateTime.
'convertDateFormat' => true,
// Options of field input.
'options' => [
],
]);
DateRangePicker::widget([
'name' => 'date_time',
'pluginOptions' => [
// see http://www.daterangepicker.com/#options
],
'pluginEvents' => [
// see http://www.daterangepicker.com/#events
],
// Language of plugin. If `null` then `\yii\base\Application::language` will be used.
'language' => 'ru',
// Converting date format from PHP DateTime to Moment.js DateTime.
'convertDateFormat' => true,
// Options of field input.
'options' => [
],
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.