I am getting date from datepicker
$("#dt").datepicker({ dateFormat: 'MM dd yy' });
now, I want to add default time 8:00:00 AM to the date.
var newdt =???
but not sure how, reason I didn’t add time in the dateFormat is because I dont want to show the time on the UI.
also how do I disable user from entering text in the textbox? I want to allow the user to modify the date only using datepicker.
Thanks,
To disable entering text:
to add the time:
Edit because of comment: