I'm looking for the simplest way to add dynamic dates to my events.
(function() {
document.querySelector("#startDate").valueAsDate = new Date();
document.querySelector("#endDate").valueAsDate = new Date();
document.querySelector("#endDate").min = new Date()
.toISOString()
.substr(0, 10);
I was expecting, to be able to add dates simply, but i cant think of a way to do it.