Hi ,
Can anyone please help me,
Today date is 21/07/2020 and i need to compare this date with another date which is greater or lesser.
ex: input : 18/07/2020 > 21/07/2020 → Output should be False
input : 18/07/2020 < 21/07/2020 → Output should be True
You can use Date.Compare or a simple if statement as below:
date1.Date.CompareTo(date2.Date)
Or:
If date1.Date < date2.Date Then
Also as this is mostly to do with VB.Net and date comparison, please try searching google too