Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to compare 2 date time in asp.net core 3.1

DateTime date1 = new DateTime(1990, 8, 1, 0, 0, 0);
DateTime date2 = new DateTime(1990, 8, 1, 12, 0, 0);
int result = DateTime.Compare(date1, date2);
string relationship;

if (result < 0)
   relationship = "is earlier than";
else if (result == 0)
   relationship = "is the same time as";
else
   relationship = "is later than";
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity how to get fps c# 
Csharp :: how to draw a rectangle in monogame 
Csharp :: c# unity camera follow 
Csharp :: c# filter non alphanumeric characters 
Csharp :: unity deadzone 
Csharp :: c# add 1 
Csharp :: c# how to open file explorer 
Csharp :: c# serialize to xml 
Csharp :: avoid autocomplete input text asp.net 
Csharp :: equivalent to T extends TT in c# 
Csharp :: game object find 
Csharp :: sqrt unity 
Csharp :: instantiate scale object 
Csharp :: get rigidbody component unity 
Csharp :: change array size in unity 
Csharp :: unity spawn button 
Csharp :: destroy gameobject unity 
Csharp :: random seed in c# 
Csharp :: c# console beep sounds 
Csharp :: c# repeat x times 
Csharp :: public GameObject 
Csharp :: get normal from 3 points 
Csharp :: mvc list to jsonresult 
Csharp :: invert string c# 
Csharp :: c# date 
Csharp :: unity random 
Csharp :: how to deactivate objects through scripts in unity 
Csharp :: function in Razor Pages 
Csharp :: unity normalize float 
Csharp :: c# datagridview search filter 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =