private static boolean dayView(Calendar cal, DateTime d) {
		Event[] events = cal.getDay(d);

		if (events == null) {
			return false;
		}

		//30 spaces across
		String title = "Events for " + d.getMonth() + "-" + d.getDay();
		String spacer = "---------------------------------------------";
		int x = 45 - title.length();
		title = space(x/2 + x%2) + title + space(x/2);
		System.out.println(title);

		if (events.length == 0) {
			System.out.println(spacer);
			title = "You have no events for this day!";
			x = 45 - title.length();
			title = space(x/2 + x%2) + title + space(x/2);
			System.out.println(title);
			return true;
		}

		for (Event e : events) {
			System.out.println(spacer);
			title = e.getName();
			x = 45 - title.length();
			if (x < 0) {
				title = title.substring(0, 42) + "...";
			} else {
				title = space(x/2 + x%2) + title + space(x/2);
			}
			System.out.println(title);

			title = "from " + e.getDateTime().getHour() + ":";
			if (e.getDateTime().getMinute() < 10) {
				title += "0";
			}
			title += e.getDateTime().getMinute();
			if (e.getDateTime().isAm()) {
				title += " am";
			} else {
				title += " pm";
			}
			title += " to " + e.getEndTime().getHour() + ":";
			if (e.getEndTime().getMinute() < 10) {
				title += 0;
			}
			title += e.getEndTime().getMinute();
			if (e.getEndTime().isAm()) {
				title += " am";
			} else {
				title += " pm";
			}

			//title = "From " + e.getDateTime().getHour() + ":" + e.getDateTime().getMinute() + " to " + e.getEndTime().getHour() + ":" + e.getEndTime().getMinute();
			x = 45 - title.length();
			title = space(x/2 + x%2) + title + space(x/2);
			System.out.println(title);
		}

		return true;
	}