how to set a date according to another date in jquery code example Example: var mindate = new date(selected.date.valueof()) var selectedDate = new Date();