I want add hours or minutes to current time

前端 未结 4 1863
小蘑菇
小蘑菇 2020-12-03 13:40

I want to increase time to current time.

for example, I have the time of the problem and the expected time to complete them
How can I add?

 (Date         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 13:55

    You can use other variable

    DateTime otherDate = DateTime.Now.AddMinutes(25);
    DateTime tomorrow = DateTime.Now.AddHours(25);
    

提交回复
热议问题