HI,
Before i give you the answer i want you to go though my code again. Just read it carefully.
remember if your using document.getElementById method of javascript you ALWAYS need to use an ID.
Look at your code,
<input type="text" name="DateEvent">
Where is the ID? 😃
Use an ID so it will work. Good luck
Regards,
Niroshan