function perfectJSDate(formThisDate){
	
	var start_date = formThisDate;

	var startDateDay = start_date.substring(0,2);
	var startDateMonth = start_date.substring(3,5);
	var startDateYear= start_date.substring(6,10);

	var newdate = new Date(startDateYear, startDateMonth-1, startDateDay, 0, 0, 0, 0);
	
	return newdate;
}

function checkIfStartIsBeforeEnd(start_date,end_date){
	//returns true, if start is before end
	
	var date1JS = start_date;
	var date2JS = end_date;
	
	if(date1JS < date2JS ){
		
		return true;
	}else{
		
		return false;
	}
	
}
