Java Hour Format formatHour(final Date date)

Here you can find the source of formatHour(final Date date)

Description

format Hour

License

LGPL

Declaration

static String formatHour(final Date date) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static SimpleDateFormat format0 = new SimpleDateFormat("HH:mm");

    static String formatHour(final Date date) {
        return format0.format(date);
    }/*  w  ww  . j a v a  2  s .c o m*/
}

Related

  1. formatFromString(String date)
  2. formatFullDate(Object date)
  3. formatFullTime(Date date)
  4. formatHDate(java.util.Date date)
  5. formatHoraFormatadaHHMMSSStr(Date hora)
  6. formatHours(Locale locale, double totalhours)
  7. formatHours(long millis)
  8. formatHourTimeHToString(Date srcDate)
  9. formatHttpDate(Date d)