kongoon/yii2-bootstrap-datepicker-thai

Bootstrap datepicker for Buddhist-Era or Christian-Era

1.0.2 2018-08-06 15:18 UTC

This package is not auto-updated.

Last update: 2024-11-02 18:50:05 UTC


README

Install

composer require kongoon/yii2-bootstrap-datepicker-thai "^1.0" or add this line to composer.json "kongoon/yii2-bootstrap-datepicker-thai": "^1.0"

Usage

To use this widget, insert the following code into a view file:

<?php
use kongoon\yii2\datepickerthai\BootstrapDatepickerThai;
echo BootstrapDatepickerThai::widget([
	'options' => [
		'id' => 'yourid',
		'format' => 'dd/mm/yyyy',
		'language' => 'th-th',
	]
]);
?>