Days Between Dates - CSharp System

CSharp examples for System:DateTime Day

Description

Days Between Dates

Demo Code


using System.Globalization;
using System;/* w  ww .  j  av a  2s . c  om*/

public class Main{
        public static int DaysBetweenDates(DateTime start, DateTime end)
        {
         return end.Date.Subtract (start.Date).Days;
        }
}

Related Tutorials