Java Hour Format getHHmm()

Here you can find the source of getHHmm()

Description

get H Hmm

License

Apache License

Declaration

public static String getHHmm() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

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

    public static String getHHmm() {
        return simpleTimeFormat.format(new Date());
    }//  w  w w . ja  va2  s.c  o  m
}

Related

  1. formatWithSql92Date(Date date)
  2. formatXEP0082Date(Date date)
  3. formatXsdDate (final Date date)
  4. formatXsdDateTime(Date d)
  5. getFormattedHoursByMinutes(int minutes)
  6. getHHMM(Date date)
  7. getHHMMSS()
  8. getHHMMSS()
  9. getHHmmSS()