Is Tomorrow - CSharp System

CSharp examples for System:DateTime Calculate

Description

Is Tomorrow

Demo Code


using Windows.Globalization.DateTimeFormatting;
using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//  ww  w. java 2 s .com

public class Main{
        public static bool IsTomorrow(this DateTime dateTime)
        {
            return dateTime.ToLocalTime().Date.Equals(DateTime.Today.AddDays(1));
        }
}

Related Tutorials