Hi,i need a way to compare todates.
Eksampel:
This works fine if both Dates are in the same year, but not else.
How to du this a better way?
Eksampel:
VB.NET:
Dim Date1 as Date
Dim Date2 as Date
Date1="01-12-2005"
Date2="15-05-2007"
If Date1 > Date2 Then
Msgbox "Date1 is the newest"
Else
Msgbox "Date2 is the newest"
Endif
This works fine if both Dates are in the same year, but not else.
How to du this a better way?