compare two date using javascript

前端 未结 7 1638
轻奢々
轻奢々 2020-12-10 18:26

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

7条回答
  •  悲&欢浪女
    2020-12-10 18:55

    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.

提交回复
热议问题