Hai I want to set javascript variable (getdate1) as PHP variable to compare the dates with database value to display event details. I attached the attachement of how alert box will work.
var getdate1 = document.getElementById("eventDayName").innerHTML = selectedDate.toLocaleString("en-US", {
month: "long",
day: "numeric",
year: "numeric"
});
alert(getdate1);