Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Datediff in c#
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { DateTime endDate = Convert.ToDateTime("31/12/2016"); DateTime startDate = Convert.ToDateTime("01/01/2016"); int dayDiff = (endDate - startDate).Days; Console.WriteLine(dayDiff); } } }
run
|
edit
|
history
|
help
0
1234
Overriding
opQ 3
conditional Debug
generics one more doubt-stack overflow exception
Multi-Dimensional Array
Leapyear
Scheduler NLog config
Sugar
XPath