var newTime = theTime.Date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ"); // returns "2017-06-26T00:00:00.000Z"