Update datepicker.js

I noticed that when you type the date in a input field instead of picking it. It was not parsing it right through the dateFormat informed, so I fix it.

This Fix will parse the input value typed also using the dateFormat.