I have two date in which one is dd-mm-yyyy hh:mm format and another in dd-mm-yyyy (D1) format fristly i split the dd-mm-yyyy hh:mm fo
dd-mm-yyyy hh:mm
dd-mm-yyyy (D1)
You can date compare as most simple and understandable way like.
//with time include // without time include
so firstly write a common method to parse date method.
by here you can call above method
Just use parseDate method and compare any type of the date.