refactoring - adding function to format datetime into an rfc3339 string for google calendar api call