	public boolean isDateValid(int year, int month, int day, int hour, int minute)
	{
		if(hour == 0)
			hour = 24;
		else if(hour == 24)
			hour = 0;
		String date = String.valueOf(year)+"-"+String.valueOf(month)+"-"+String.valueOf(day)+"-"+String.valueOf(hour)+"-"+String.valueOf(minute);
		System.out.println("input: "+date);
		String DATE_FORMAT = "yyyy-MM-dd-kk-mm";
	        try {
	            DateFormat df = new SimpleDateFormat(DATE_FORMAT);
	            df.setLenient(false);
	            Date d = df.parse(date);
	            System.out.println("interpreted as: " + df.format(d));
	            return true;
	        } catch (ParseException e) {
	        	System.out.println("INVALID DATE! hilsen TimeService");
	            return false;
	        }
	}

	public boolean isDateValid(int year, int month, int day, int hour, int minute)
	{
		if(hour == 0)
			hour = 24;
		else if(hour == 24)
			return false;
		String date = String.valueOf(year)+"-"+String.valueOf(month)+"-"+String.valueOf(day)+"-"+String.valueOf(hour)+"-"+String.valueOf(minute);
		System.out.println("input: "+date);
		String DATE_FORMAT = "yyyy-MM-dd-kk-mm";
	        try {
	            DateFormat df = new SimpleDateFormat(DATE_FORMAT);
	            df.setLenient(false);
	            Date d = df.parse(date);
	            System.out.println("interpreted as: " + df.format(d));
	            return true;
	        } catch (ParseException e) {
	        	System.out.println("INVALID DATE! hilsen TimeService");
	            return false;
	        }
	}
