Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# compare date values

var target = DateTime.Parse("3/25/2020");
var todaysDate = DateTime.Today;

if(target > todaysDate)
{
    Console.WriteLine("Hello World!");
}
else 
{
    Console.WriteLine("Too Bad");
}
Source by dotnet.microsoft.com #
 
PREVIOUS NEXT
Tagged: #compare #date #values
ADD COMMENT
Topic
Name
8+9 =