Java Date to Time toTimeString(Date date)

Here you can find the source of toTimeString(Date date)

Description

to Time String

License

Apache License

Declaration

public static String toTimeString(Date date) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String Format_Time = "HH:mm:ss";

    public static String toTimeString(Date date) {
        if (date == null) {
            return "";
        }//from  ww w.  ja v a  2  s. com
        return new SimpleDateFormat(Format_Time).format(date);
    }
}

Related

  1. toTime(Date... date)
  2. toTimeStr(Date date)
  3. ToTimeStr(Date dt)
  4. toTimeString(Date date)
  5. toTimeString(Date date)
  6. toTimeString(Date dateTime)
  7. toTimeString(Date time)
  8. toUIDateTimeString(Date d)
  9. toXSDDateTime(Date date)