Questions related to the property commonly found in datepicker or datetimepicker widgets and plugins should use this tag. Similarly questions related to the minDate property related to database datestamps should use this tag as well.
Questions tagged [mindate]
79 questions
29
votes
9 answers
jquery datetime picker set minDate dynamic
I guys i'm using a datetimepicker by trentrichardson.com.
I have a form with two input fields : from and to and i want to be able to set dynamically a minDate to my "to" field equal to the value of my "from" field.
I know i should use a beforShow…

luca
- 36,606
- 27
- 86
- 125
18
votes
4 answers
jQuery datepicker mindate, maxdate
I have the two following datepicker objects but I can't get what I want as I am getting stuck with the minDate and maxDate options:
This is to restrict the dates to future dates.
What I want: restrict the dates from current date to 30 years…

Amra
- 24,780
- 27
- 82
- 92
16
votes
2 answers
Android DatePicker shows unavailable months when using min/max limits
I've only found 1 other instance of this issue on StackOverflow which was unanswered (last year), so I figured I'd give it another shot. (Android DatePicker/Dialog displaying incorrect month/s using min/max date, with an actual image)
When setting…

Kevin
- 183
- 8
11
votes
0 answers
iOS: UIDatePicker "remove" dates outside min and max dates
I have coded a simple UIDatePicker with minimum and max dates.
I want the datepicker to NOT show the unavailable dates, not only disable them.
Actual: you are able to scroll through all the unavailable dates, but when you rest on an unavailable…

B-Man
- 2,209
- 3
- 22
- 35
11
votes
6 answers
jQuery DatePicker Min Max dates
I have the jQuery date picker setup and working but would like help with setting the minDate and maxDate options. My current code is below (without these options). How can I set the minDate as 3 months before the defaultDate, and maxDate as 28days…

Rob
- 738
- 3
- 10
- 23
9
votes
1 answer
Can't find minimum date (MinDate) property in WPF calendar control
I can't find a minimum date (MinDate) property in the calendar control in WPF 4.0.
If there is no minimum date or maximum date property in the calendar control then how could I achieve the same?

Vishal
- 6,238
- 10
- 82
- 158
8
votes
2 answers
Remove minDate/maxDate limits in jQuery UI Datepicker
A simple issue, but I can't seem to find the answer.
I've limited the date range in jQuery Datepicker:
$( "#MyDatepicker" ).datepicker( "option", "minDate", new Date())
Is there a way to remove all restrictions for date range?

Earl Grey
- 95
- 1
- 1
- 4
6
votes
7 answers
jquery datepicker range (mindate maxdate) is not working
I'm trying to set a range for a jquery datepicker that I have on my form but when I open the form it allows me to select any date.
…

silvster27
- 1,916
- 6
- 30
- 44
4
votes
1 answer
change jquery Bootstrap datetimepicker mindate dynamically
I need to change minDate of jQuery's datetimepicker. Currently the value for the minDate is null on the .change() method.
I am currently using the code below:
jQuery('#field_bvk123').datetimepicker({
onSelect: function(department_date)…

Jay Kareliya
- 760
- 7
- 21
4
votes
2 answers
Jquery UI Datpicker excluding weekends minDate
How do I make jQuery UI datepicker exclude weekends and also set minDate to a certain value like +2 / +3 (excluding weekends) ???
What I've tried:
$("#txtFromDate").datepicker({
minDate: 4,
beforeShowDay: $.datepicker.noWeekends,
…

BetRob
- 251
- 1
- 7
- 12
4
votes
2 answers
jQuery Datepicker minDate not working
I would expect the following would have the date range to start from 65 years ago and end at 18 years ago. Instead, minDate number is ignored, and set to 10 years prior to end date. No difference whatever I put as value in minDate.
$(function() {
…

Mladen
- 516
- 1
- 9
- 20
3
votes
3 answers
How can I set the minDate/maxDate for jQueryUI Datepicker using a string?
jQueryUI Datepicker documentation states that the minDate option can be set using "a string in the current dateFormat". So I've tried the following to initialize datepickers:
$("input.date").datepicker({ minDate: "01/01/2010", maxDate: "12/31/2010"…

leo
- 71
- 1
- 2
- 6
2
votes
2 answers
On datepicker calendar how to set date to property 'minDate' without disabling previous months
I want to set minDate on Date to calendar #dateto without disabling previous months.
By default the calendar #datefrom and #dateto have set property minDate to today
Take for example that the today date 2019-2-8
The goal is to select the date…

Sandi Milohanic
- 23
- 5
2
votes
2 answers
BootsFaces TypeError: minDate() Could not parse date parameter
I'm using a dateTimePicker with BootsFaces. Here I want to restrict the selection to upcomming days (so no days in the past)
I use bootsfaces version 1.3.0 and omnifaces version 1.7
Here is what I did:

TheSilent
- 43
- 1
- 7
2
votes
1 answer
Set ui datepicker max/minDate on the fly
Thought it would be more easier than it is.
Task:
1)disable future days. (Set maxDate as today - done)
2)from js variable get date and set it as a minDate on the fly - how?
main function (which I use for few pages):
jQuery(
function($){
…

karlisup
- 672
- 12
- 22