Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Compare dates c#
//Title of this code //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) { //Your code goes here DateTime date1 = new DateTime(2009, 8, 1, 0, 0, 0); DateTime date2 = new DateTime(2015, 8, 1, 12, 0, 0); DateTime dt = new DateTime(2014, 07, 19); Console.WriteLine("Compare: " + date2.CompareTo(DateTime.Now.AddDays(0))); Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Login Silencioso
SKYIES
іфи
EFDS
Collections
Escape's Vanity Fair (Malformed \p {X} character escape)
c# hashset custom comparer
123
Output to get sum = 5 in given array of integers
VBA
Please log in to post a comment.