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
[REDACTED] database V0.1.6
math 5.74
Enumerate an enum?
30272 Program Ex5 if_else2_odd_even
Huffman Algorithm
Fibonacci
C# constructor in inheritance
int-float C# division
String to keycode and switch check
test