Java Hour getHourMinuteString(Date dateTime)

Here you can find the source of getHourMinuteString(Date dateTime)

Description

get Hour Minute String

License

Apache License

Declaration

public static String getHourMinuteString(Date dateTime) 

Method Source Code


//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
}

Related

  1. getHourFormatedTwoDigit()
  2. getHourFromDate(Date date)
  3. getHourInt()
  4. getHourMin(Date date)
  5. getHourMinuteSecondByMisSecond(long misSecond)
  6. getHourMinuteString(Date t)
  7. getHourOfDay(Calendar date)
  8. getHourOfDay(final Date date)
  9. getHourOfDayInAm(Date dt)