Here you can find the source of getTimeStr(Date date, char delimiter)
public static String getTimeStr(Date date, char delimiter)
//package com.java2s; import java.util.*; import java.text.*; public class Main { public static String getTimeStr(Date date, char delimiter) { if (date != null) { DateFormat df = new SimpleDateFormat("HH" + delimiter + "mm"); return df.format(date); }// w w w . j av a 2 s . co m return ""; } }