I\'m using Microsoft Graph .NET SDK to update outlook events. Following code successfully updates the Subject, and Body attributes of an event. But
You need to add date in below format. Hope it will solve your issue.
var @event = new Event
{
Subject = "Test subject",
Body = new ItemBody { Content = "Test body content" },
Start = new DateTimeTimeZone { DateTime = "2020-08-20T08:30:00.0000000", TimeZone = "GMT Standard Time" }
};
You need something like this instead because of the object type being used in the property
var @event = new Event
{
Subject = "Test subject",
Body = new ItemBody { Content = "Test body content" },
Start = new DateTimeTimeZone { DateTime = "2020-08-20T08:30:00.0000000", TimeZone = "UTC" }
};