var startDate = $("#startDate").val() ;
var endDate = $("#endDate").val() ;
if(startDate==null || endDate==null || startDate=="" || endDate==""){
  alert("起止时间不能为空");
  return ;
}

if(startDate>=endDate){
  alert("结束时间应大于开始时间") ;
  return ;
}startDate 和endDate是从页面获取到的两个时间段,格式为yyyy-MM-dd hh:mm:ss ,怎么判断这两个时间段跨度小于三个月啊?
PS:就是小于三个月,不是小于90天或之类的。js