Wijmo 5 - Date and Time Input
HTML
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.wijmo.com/5.latest/styles/wijmo.min.css">
<script src="http://cdn.wijmo.com/5.latest/controls/wijmo.min.js"></script>
<script src="http://cdn.wijmo.com/5.latest/controls/wijmo.input.min.js"></script>
<div class="container">
<div id="theInputDate"></div>
<div id="theCalendar"></div>
</div>
CSS
.wj-calendar {
max-width: 300px;
}
.wj-control {
margin-bottom: 6px;
}
body {
margin-bottom: 24pt;
}
#theInputDate {
margin-bottom: 50px;
}
JavaScript
onload = function() {
var theDate = new Date("2018-01-08");
// create InputDate control
var inputDate = new wijmo.input.InputDate('#theInputDate', {
min: new Date("2017-12-22"),
max: new Date("2018-01-08"),
format: 'M/d/yyyy',
value: theDate
});
// create Calendar control
var calendar = new wijmo.input.Calendar('#theCalendar', {
min: new Date("2017-12-22"),
max: new Date("2018-01-08"),
value: theDate
});
}