How to create a DateTime object?

前端 未结 5 1515
滥情空心
滥情空心 2020-12-18 20:07

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.<

5条回答
  •  一生所求
    2020-12-18 20:38

    you have a constructor that takes:

    DateTime(Int32, Int32, Int32, Int32, Int32, Int32) 
    

    Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, and second.

提交回复
热议问题