Transform your input fields in a datepicker in a few simple steps.
Import jQuery and jQueryUI
<link rel="stylesheet" href="http//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<script src="http//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
Create an input field and give it the datepicker
class
<input type="text" class="datepicker" />
<input type="text" class="datepicker from" />
<input type="text" class="datepicker to" />
<input type="text" class="datepicker gte-today" />
<input type="text" class="datepicker gt-today" />
<input type="text" class="datepicker lte-today" />
<input type="text" class="datepicker lt-today" />