wdmg / bootstrap-datepicker-plugin
A date/time picker plugin for Bootstrap 3
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Language:JavaScript
README
Date and time picker plugin for Bootstrap framework
Installation
$ npm install bootstrap-datepicker-plugin
$ bower install bootstrap-datepicker-plugin
$ yarn add bootstrap-datepicker-plugin
$ composer require bootstrap-datepicker-plugin
Usage example
For example use the input-group:
<div class="form-group">
<label class="control-label">Datetime:</label>
<div id="datepicker" class="input-group">
<input type="text" class="form-control" name="some-datetime" value="2019-01-21 22:06:54">
<span class="input-group-btn">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
</button>
</span>
</div>
</div>
... and init from script:
<script type="text/javascript">
$(document).ready(function () {
$('#datepicker').datepicker({
format: 'YYYY/MM/DD',
...
});
});
</script>
Options
Support formats
Methods
Status and version
- v.1.1.1 - Fix init datetime val()
- v.1.1.0 - Plugin in progress development