I\'m trying to get the Google Calendar Api to work. Without the use of my $_POST date times it works perfect. But then the date is hard coded like the google ones and that i
Looking at the Google Calendar API docs the required format must follow the RFC 3339 format. To convert a DateTime
to this format one can use the DateTime::format function in conjunction with the DateTime::RFC3339 constant.
You should get something like:
$dt = new \DateTime();
$calendarDateTime = new \Google_Service_Calendar_EventDateTime();
$calendarDateTime->setDateTime($dt->format(\DateTime::RFC3339));