Returns tomorrow’s DateTime
value.
Use DateTime.Now
to get the current date, then use DateTime.AddDays(1)
to increment by 1
.
代码实现
public static partial class _30s
{
public static DateTime Tomorrow()
{
return DateTime.Now.AddDays(1);
}
}
使用样例
_30s.Tomorrow(); // 12/22/2019 11:00:49 AM (if it's 12/21/2019 11:00:49 AM)