Construct a javascript date from a string without timezone (for JqueryUI datepicker) <p>I'm using the jQueryUI Datepicker library and I need to supply it with a date that is dynamically loaded for the min date.</p> <p>I set up my datepicker:</p> <pre><code>$("#thePicker" ).datepicker({ dateFormat: 'yy-mm-dd', showOtherMonths: true, changeMonth: true, changeYear: true, minDate: new Date('2016-04-28'), }); </code></pre> <p>Where '2016-04-28' is a string that could vary when loaded.</p> <p>This though sets the minimum allowable date to April 27, 2016, due to a timezone conversion.</p> <p>How should I construct this new Date for the minDate when I have a string of the format shown above supplied so that no timezone is relevant?</p>