Comparing dates in jquery

前端 未结 7 1681
鱼传尺愫
鱼传尺愫 2020-12-10 04:08

I am having the following codes and it though i\'m having 01-Jan-2009 for DateTo and 03-Jan-2009 for DateFrom it\'s readi

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 04:27

    The Easy Way to Do is

     var start= new Date($('#txtstart').val());
     var end= new Date($('#txtend').val());
                if (start < end) {
    
                }
    

提交回复
热议问题