passing in date as a parameter to the eventrecord constructor