DateTime is just a way of storing data, it doesn’t have a format until you output it somewhere. You can’t “convert” a DateTime to a different format. If it has the correct day, month, and year then you can freely compare it to Date1.
If you’re logging the Date2 or passing it somewhere you can do Date2.ToString(“dd/MM/yyyy”) to get it in the format that you need.
There is a certain thing you have to take into consideration while doing this. You have to convert both the date in the same format you can do that using CDate CDate will accept string and cast into the date or you can use what @AshwinS2.
Just go through the dates and select the suitable way to do this and which is going to be less error prone.