Added date check for events in calendar

Added date variable which will pass a value to the getEvents method for
event data.