using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
string strFromDate="01/01/2016";
string strToDate="31/01/2016";
DateTime frmDate=Convert.ToDateTime(strFromDate);
DateTime toDate=Convert.ToDateTime(strToDate);
TimeSpan DateDiffDay;
DateDiffDay=toDate-frmDate;
double Days= DateDiffDay.Days;
Console.WriteLine("Total Day:{0}",Days);
}
}
}This snippet helps to find total days from two dates.
