Here you can find the source of formatTimeWithOutSeconds(java.util.Date d)
public static final String formatTimeWithOutSeconds(java.util.Date d)
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static final String formatTimeWithOutSeconds(java.util.Date d) { SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); return sdf.format(d); }//from ww w . j ava 2s. co m }