I am having trouble setting the date with a specific format. I currently get "17/11/2021" by default, but I would like it to be "Nov 17, 2021". Additionally, I would like to know how to prevent past dates from being selected using this code. Any assistance on this matter would be greatly appreciated. Thank you!
const input = document.createElement('input');
input.type = "date"
input.id = "scheduleTime"
input.className = "input-text";
input.value = new Date(Date.now()).toLocaleDateString('en-CA');