Here you can find the source of getHourMinuteString(Date dateTime)
public static String getHourMinuteString(Date dateTime)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getHourMinuteString(Date dateTime) { return new SimpleDateFormat("H:mm").format(dateTime); }//ww w . j ava 2 s . c o m }