我要补充小时或分钟,以当前时间 [英] I want add hours or minutes to current time

查看:123
本文介绍了我要补充小时或分钟,以当前时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要增加的时间为当前时间,例如,我有这个问题,并在预期的时间的时间来完成他们的
我如何添加?



 (DateTime.Now.ToShortDateString()+ ......)


< DIV CLASS =h2_lin>解决方案

您可以使用其他变量

 日期时间otherDate =日期时间。 Now.AddMinutes(25); 
日期时间明天= DateTime.Now.AddHours(25);


I want 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?

 (DateTime.Now.ToShortDateString()  +.......)

解决方案

You can use other variable

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

这篇关于我要补充小时或分钟,以当前时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆