var startTime = DateTime.UtcNow.ToString(timeFormat); var endTime = DateTime.Today.AddDays(1).AddSeconds(-1).ToUniversalTime().ToString(timeFormat);