Java Date to Time toTimeString(Date dateTime)

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

Description

to Time String

License

Apache License

Declaration

public static String toTimeString(Date dateTime) 

Method Source Code

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

import java.text.DateFormat;

import java.util.Date;

public class Main {
    public static String toTimeString(Date dateTime) {
        DateFormat dateFormat = DateFormat.getDateTimeInstance();
        return dateTime != null ? dateFormat.format(dateTime) : "";
    }/*from ww w .ja  v  a2 s  .  co m*/
}

Related

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