DateTimePicker icon indicating copy to clipboard operation
DateTimePicker copied to clipboard

Current date with time increment only

Open surya5353 opened this issue 9 years ago • 0 comments

Hi,

First of all the plugin is good and easy customization.

I am using this: http://curioussolutions.github.io/DateTimePicker/

i want a small requirement as per below screenshot. my requirement for appointment form. when user click date field it open and current date with disable change options and increment time from current time, when that time decrement time also disable. is it possible in this plugin. please check the below screenshot.

and check what i used code right now. it was disable all time and date "+" and "-" .

<script type="text/javascript">
$(document).ready(function()
{
$("#dttBox").DateTimePicker({
dateTimeFormat: "dd-MM-yyyy HH:mm AA",
addEventHandlers: function()
{
var oDTP = this;
oDTP.settings.minDateTime = oDTP.getDateTimeStringInFormat("Date", "dd-MM-yyyy", new Date());
oDTP.settings.maxDateTime = oDTP.getDateTimeStringInFormat("Date", "dd-MM-yyyy", new Date());
}
});
});
</script>

i want to show only below screen shot.

![screenshot](https://cloud.githubusercontent.com/assets/6995567/12741182/375cfafc-c9a0-11e5-933d-9e955b262bea.jp

surya5353 avatar Feb 02 '16 06:02 surya5353