105 lines
2.2 KiB
HTML
105 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Period Range - Minimum Time Now</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
|
|
|
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
|
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
|
|
|
<!--[if lt IE 9]>
|
|
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
|
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
|
<![endif]-->
|
|
|
|
<style type="text/css">
|
|
|
|
p
|
|
{
|
|
margin-left: 20px;
|
|
}
|
|
|
|
input
|
|
{
|
|
width: 200px;
|
|
padding: 10px;
|
|
margin-left: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form>
|
|
|
|
<!------------------------ Date Picker ------------------------>
|
|
<p>Date : </p>
|
|
<input type="text" data-field="time" readonly>
|
|
|
|
</form>
|
|
|
|
<div id="dtBox"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function()
|
|
{
|
|
$("#dtBox").DateTimePicker(
|
|
{
|
|
timeFormat: "hh:mm AA",
|
|
|
|
addEventHandlers: function()
|
|
{
|
|
var oDTP = this;
|
|
|
|
oDTP.settings.minTime = oDTP.getDateTimeStringInFormat("Time", "hh:mm AA", new Date());
|
|
//oDTP.settings.maxTime = "11:59 PM";
|
|
}
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
<!-- Default dateFormat: "dd-MM-yyyy"
|
|
|
|
dateFormat Options :
|
|
1. "dd-MM-yyyy"
|
|
2. "MM-dd-yyyy"
|
|
3. "yyyy-MM-dd"
|
|
|
|
Specify (data-min & data-max) / (minDate & maxDate) values in the same dateFormat specified in settings parameters
|
|
-->
|
|
|
|
<!-- Default timeFormat: "HH:mm"
|
|
|
|
timeFormat Options :
|
|
1. "HH:mm"
|
|
2. "hh:mm AA"
|
|
|
|
Specify (data-min & data-max) / (minTime & maxTime) values in the same timeFormat specified in settings parameters
|
|
-->
|
|
|
|
<!-- Default dateTimeFormat: "dd-MM-yyyy HH:mm:ss"
|
|
|
|
dateTimeFormat Options :
|
|
1. "dd-MM-yyyy HH:mm:ss"
|
|
2. "dd-MM-yyyy hh:mm:ss AA"
|
|
3. "MM-dd-yyyy HH:mm:ss"
|
|
4. "MM-dd-yyyy hh:mm:ss AA"
|
|
5. "yyyy-MM-dd HH:mm:ss"
|
|
6. "yyyy-MM-dd hh:mm:ss AA"
|
|
|
|
Specify (data-min & data-max) / (minDateTime & maxDateTime) values in the same dateTimeFormat specified in settings parameters
|
|
-->
|
|
|
|
</body>
|
|
|
|
</html> |