I have three integers: Hours, Minutes, and Seconds.
I want to create a DateTime object with System.Date and Time provided by the above three variables.
DateTime
Check out MSDN and have a look at the constructors that exists for DateTime, you'll find out that this is possible:
var theDate = new DateTime (DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, hours, minute, second);
1.4m articles
1.4m replys
5 comments
57.0k users