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)
Convert them into milliseconds, then do comparision