date - jQuery -To get minDate value and set that value -


I have a date field and want to set minDate for that. There is a custom limit that I have defined for Shoved before, to make some date in the form of selection. I want to set the first selection date using the setDate function. How can I get this? Example: When I use it for the finished work, jQuery ('#startDate'), DatePicker ("Setdate", New Date), so time page weighted it is populated with the startup: 09/27/2010 Now instead of using the new date (), I need to have the first selectable date populated.

Here my code is the same:

  & lt; Label & gt; Start Date: & lt; / Labels & gt; & Lt; Input type = "article" id = "start date" & gt; & Lt; / Input & gt; & Amp; Nbsp; & Nbsp; & Nbsp; & Lt; Label & gt; End date: & lt; / Labels & gt; & Lt; Input type = "text" id = "endDate" & gt; & Lt; / Input & gt; & Lt; Script & gt; JQuery (function) {jQuery ('#startdown, #endDate'). Datepicker (); JQuery ('#startdown, #andDetate). DatyPicar ('Options', {before Show: customRange}); / / This format populates with the values ​​as current date in 2010/10 (I do not say / say..I want the first minimum date of the start date field / in this case should be selectable // This case 10/11/010 ????????????????) jQuery ('#started'). Date picker ("setdate", new date ());}); Function Custom Range (Input) {Get the date from {if set.id == 'endDate'} {// Set field var startDate = jQuery ('# startDate'). Datekeeper ("meet"); // add 1 day by date, so it became a minute for ToDate Field var startDate_For_ToDate_Field = New Date (startDate.getFullYear), startDate.getMonth (), startDate.getDate () + 1); // Add 30 dice per date, so it becomes maxDate for ToDate field var endDate_For_FromDate_Field = New Date (startDate.getFullYear), startDate.getMonth (), startDate.getDate () + 31); Return {numberOfMonths: 2, minute date: startDate_For_ToDate_Field, maxDate: endDate_For_FromDate_Field, first show: $ datepicker.noWeekends}; } And if (input.id == 'startDate') {$ ('# endDate'). Ditipikar ("Setdate", blank); Return {numberOfMonths: 2, minDate: '+ 1', Max: jQuery ('# and date'). Date picker ("meet") + '7', before shoewee: $ Datepicker.noWeekends}; }} & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt;  

Thanks, patience

  $ ("selector "). Datatikkar ({Minnet: New Date (2007, 1 - 1, 1)});  

:

for more information

Comments