Java Time to String time2String(Date time)

Here you can find the source of time2String(Date time)

Description

time String

License

Open Source License

Declaration

public static String time2String(Date time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    private static SimpleDateFormat timeFormat = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss");

    public static String time2String(Date time) {
        return timeFormat.format(time);
    }//from   w w w . ja v a2  s  .co  m
}

Related

  1. time2string(double t)
  2. time2String(long time)
  3. timesAreEqual(Date date1, Date date2)
  4. timeStr(Date _Date)