Java Date to Time getTimeStr(Date date, char delimiter)

Here you can find the source of getTimeStr(Date date, char delimiter)

Description

get Time Str

License

Open Source License

Declaration

public static String getTimeStr(Date date, char delimiter) 

Method Source Code


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

Related

  1. getTimeRoll(Date current, int field, int numberOfRoll)
  2. getTimeStamp(long timeMilis, boolean time, boolean date)
  3. getTimeStampInMin(Date date)
  4. getTimeStampInSec(char separator, Date date)
  5. getTimestampl(Date time1, Date time2)
  6. getTimeString(Date d)
  7. getTimeString(Date date)
  8. getTimeString(Date self)
  9. getTimeString(java.util.Date date)