Extend Bootstrap's components—now with 12 custom jQuery plugins.
Download Bootstrap Form Helpers
For adding a date picker, include bootstrap-formhelpers-datepicker.{language}.js and bootstrap-formhelpers-datepicker.js once alongside the other JS files.
Simplest example.
<div class="bfh-datepicker">
<div class="input-prepend bfh-datepicker-toggle" data-toggle="bfh-datepicker">
<span class="add-on"><i class="icon-calendar"></i></span>
<input type="text" class="input-medium" readonly>
</div>
<div class="bfh-datepicker-calendar">
<table class="calendar table table-bordered">
<thead>
<tr class="months-header">
<th class="month" colspan="4">
<a class="previous" href="#"><i class="icon-chevron-left"></i></a>
<span></span>
<a class="next" href="#"><i class="icon-chevron-right"></i></a>
</th>
<th class="year" colspan="3">
<a class="previous" href="#"><i class="icon-chevron-left"></i></a>
<span></span>
<a class="next" href="#"><i class="icon-chevron-right"></i></a>
</th>
</tr>
<tr class="days-header">
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
Example showing how to set a default date and format.
<div class="bfh-datepicker" data-format="y-m-d" data-date="2000-01-01">
<div class="input-prepend bfh-datepicker-toggle" data-toggle="bfh-datepicker">
<span class="add-on"><i class="icon-calendar"></i></span>
<input type="text" class="input-medium" readonly>
</div>
<div class="bfh-datepicker-calendar">
<table class="calendar table table-bordered">
<thead>
<tr class="months-header">
<th class="month" colspan="4">
<a class="previous" href="#"><i class="icon-chevron-left"></i></a>
<span></span>
<a class="next" href="#"><i class="icon-chevron-right"></i></a>
</th>
<th class="year" colspan="3">
<a class="previous" href="#"><i class="icon-chevron-left"></i></a>
<span></span>
<a class="next" href="#"><i class="icon-chevron-right"></i></a>
</th>
</tr>
<tr class="days-header">
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>