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.
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With