You can create a new instance of date with the seconds set to 0.
DateTime a = DateTime.UtcNow;
DateTime b = new DateTime(a.Year, a.Month, a.Day, a.Hour, a.Minute, 0, a.Kind);
Console.WriteLine(a);
Console.WriteLine(b);
You can create a new instance of date with the seconds set to 0.
DateTime a = DateTime.UtcNow;
DateTime b = new DateTime(a.Year, a.Month, a.Day, a.Hour, a.Minute, 0, a.Kind);
Console.WriteLine(a);
Console.WriteLine(b);