Java Time Format timeFormatDate(Date d)

Here you can find the source of timeFormatDate(Date d)

Description

time Format Date

License

Apache License

Declaration

public static String timeFormatDate(Date d) 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.Date;

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

    public static String timeFormatDate(Date d) {
        return timeFormat.format(d);
    }//ww w  . ja va  2 s. c  o m
}

Related

  1. stringDateTimeFormat(String dt2Format)
  2. stringTimeToLongTime(String time, String format)
  3. stringToTime(String format, String sDate)
  4. time2Date(Integer time, String format)
  5. time2String(Date time, DateFormat dateFormat)
  6. timeFormatNano(long delta)
  7. timeFormatter()
  8. timestr(String format, long secs)
  9. timeToString(String format, Date date)