转换当前时间与已知时间为同一时间格式
goToDetailView(Id,StartDate,EndDate) {
let date = new Date();
let startdate=new Date(StartDate);
let enddate=new Date(EndDate);
if(date>=startdate && date<=enddate){
console.log('goToDetailView');
this.router.navigate(['/survey/detail-view'], {
queryParams: {
id: Id,
}
});
}else{
this.presentAlert("The date you entered is not in the time range.");
}
localStorage.setItem('isGobackSurveyList', 'false');
}