My jquery code:
$('#DatePicker').datetimepicker({
timepicker : false,
format : 'd.m.Y',
minDate : 0
});
In this jquery i am using datetimepicker plugin.i want set min date is tomorrow date.in this code i set min date is today.how to set min date is tomorrow date.
Step 1: Create a DateTimePicker using the DateTimePicker() constructor is provided by the DateTimePicker class. // Creating a DateTimePicker DateTimePicker dt = new DateTimePicker(); Step 2: After creating DateTimePicker, set the MinDate property of the DateTimePicker provided by the DateTimePicker class.
To set date range of one month from current date, we will use 'M' option to "+1" for maxDate and for minDate "0" So the current date becomes the value of minDate. See below jQuery code. $(document). ready(function(){ $("#txtDate").
To set current date in control to which jQuery UI datepicker bind, use setDate() method. Pass date object which needs to be set as an argument to setDate() method. If you want to set it to current date then you can pass 'today' as argument.
To disable the weekends in Bootstrap Datepicker you need to set the daysOfWeekDisabled property value to [0, 6]. Then all the Weekends will be disabled in the datepicker control. Check this example.
Answer for this qustion:
$('#DatePicker').datetimepicker({
timepicker : false,
format : 'd.m.Y',
minDate : '-1969/12/31'
});
it's working fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With