datepicker

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css">
<input type='text' id='datepicker'>

JavaScript

Date.prototype.addDays = function(days) {
    this.setDate(this.getDate() + days);
    return this;
};


$(function() {
var currentDate = new Date();
// to add 4 days to current date
var myDate = currentDate.addDays(2);
        $('#datepicker').datepicker();
    $('#datepicker').datepicker('setDate', myDate);



});