I'm not sure what you are trying to do, but you can set the date / time exactly the way you want, in several ways ...
You can specify 12/25/2010 4:58 PM using
DateTime myDate = Convert.ToDateTime("2010-12-25 16:58:00");
OR, if you have an existing datetime construct, say 12/25/2010 (and any random time), and you want to set it before 12/25/2010 16:58, you can do it like this:
DateTime myDate = ExistingTime.Date.AddHours(16).AddMinutes(58);
ExistingTime.Date will be 12/25 at midnight, and you simply add hours and minutes to get there.
David Nov 23 2018-10-23 14:41
source share