var date1 = new Date(document.getElementById('textbox').value)
var date1 = (document.getElementById('textbox').value
Date.parse is not going to work because the format the datepicker is returning.
You might want to look at the following thread for parsing solutions or change your format that the datepicker outputs to one of the supported formats.
Useful parse info: