Verbesserter Yii2-Wrapper für das Bootstrap-Plugin für datetimepicker

Verbesserter Yii2-Wrapper für das Bootstrap-Plugin für datetimepicker


Installieren Demo

Verbesserter Yii2-Wrapper für das Bootstrap-Plugin für datetimepicker

Veröffentlichungszeit: Donnerstag, 25. Juni 2015 (vor 5 Jahren)

Erstellt von: Visweswaran Kartik

Kategorie: Andere

Aktuelle Version: dev-master
16.12.2019 12:37:15 (vor 6 Monaten)

Packagist: kartik-v/yii2-widget-datetimepicker


: 2034177 (Pro Monat: 40452)

Typ: Компонент

Verbesserter Yii2-Wrapper für das Bootstrap-Plugin für datetimepicker

Krajee Logo

Stable Version Untable Version License Total Downloads Monthly Downloads Daily Downloads

The DateTimePicker widget is a Yii 2 wrapper for the Bootstrap DateTimePicker plugin with various enhancements. The plugin is a fork of the DateTimePicker plugin by @eternicode and adds the time functionality. The widget is similar to the DateTimePicker widget in most aspects, except that it adds the time functionality and does not support ranges. The widget is specially styled for Yii framework 2.0 and Bootstrap 3 and allows graceful degradation to a normal HTML text input, if the browser does not support JQuery. The widget supports these markups:

  • Simple Input Markup
  • Component Markup - Addon Prepended
  • Component Markup - Addon Appended
  • Inline / Embedded Markup
  • Solo Button Markup

NOTE: This extension is a sub repo split of yii2-widgets. The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of yii2-widgets.


The preferred way to install this extension is through composer. Check the composer.json for this extension’s requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application’s composer.json.

To install, either run

$ php composer.phar require kartik-v/yii2-widget-datetimepicker "*"

or add

"kartik-v/yii2-widget-datetimepicker": "*"

to the require section of your composer.json file.

Release Changes

NOTE: Refer the CHANGE LOG for details on changes to various releases.


You can refer detailed documentation and demos on usage of the extension.


use kartik\datetime\DateTimePicker;

echo '<label>Start Date/Time</label>';
echo DateTimePicker::widget([
    'name' => 'datetime_10',
    'options' => ['placeholder' => 'Select operating time ...'],
    'convertFormat' => true,
    'pluginOptions' => [
        'format' => 'd-M-Y g:i A',
        'startDate' => '01-Mar-2014 12:00 AM',
        'todayHighlight' => true


yii2-widget-datetimepicker is released under the BSD-3-Clause License. See the bundled for details.

Alle Kommentare (0)
Keine Kommentare

dev-master — 16.12.2019 12:37:15 (vor 6 Monaten)

v1.4.9 — 29.05.2019 15:28:51 (vor einem Jahr)

v1.4.8 — 09.10.2018 14:39:13 (vor einem Jahr)

v1.4.7 — 29.08.2018 14:42:11 (vor einem Jahr)

v1.4.6 — 25.08.2018 18:09:46 (vor einem Jahr)

v1.4.5 — 21.08.2018 21:49:35 (vor einem Jahr)

v1.4.4 — 08.06.2017 08:53:28 (vor 3 Jahren)

v1.4.3 — 19.01.2017 18:04:42 (vor 3 Jahren)

v1.4.2 — 10.01.2016 15:18:38 (vor 4 Jahren)

v1.4.1 — 04.11.2015 21:46:05 (vor 4 Jahren)

v1.4.0 — 25.01.2015 19:36:55 (vor 5 Jahren)

v1.3.0 — 12.01.2015 15:28:59 (vor 5 Jahren)

v1.2.0 — 04.12.2014 12:58:45 (vor 5 Jahren)

v1.1.0 — 28.11.2014 22:20:18 (vor 5 Jahren)

v1.0.0 — 08.11.2014 21:48:07 (vor 5 Jahren)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"kartik-v/yii2-widget-datetimepicker": "*"

Запустите обновление зависимостей

Читать про обнолвение SkeekS CMS