Java Time Format getFormatDateTime(Date date)

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

Description

get Format Date Time

License

Open Source License

Declaration

public static String getFormatDateTime(Date date) 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getFormatDateTime(Date date) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
    }//from w  w  w.  j  a va 2s.  co  m
}

Related

  1. getEndDate(String time, SimpleDateFormat dateFormat)
  2. getFormat2TimetagStr()
  3. getFormatDate(Date date, boolean ShowTimePart_in)
  4. getFormatDate(String timeString, String format)
  5. getFormatDatetime()
  6. getFormatDateTime(Date date, String format)
  7. getFormatDateTime(java.util.Date date)
  8. getFormattedCurrentDateAndTime()
  9. getFormattedCurrentDateTime(String pattern)