code: public static String toTimeString(java.util.Date date) {
  		if (date == null)
  			return "";
  		Calendar calendar = Calendar.getInstance();
  
  		calendar.setTime(date);
  		return (toTimeString(calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND)));
  	}
docs: Makes a time String in the format HH:MM:SS from a Date. If the seconds
  are 0, then the output is in HH:MM.
  
  @param date
  The Date
  @return A time String in the format HH:MM:SS or HH:MM