Java Date Format DateTimeFormat(final Date date)

Here you can find the source of DateTimeFormat(final Date date)

Description

Date Time Format

License

Open Source License

Declaration

public static String DateTimeFormat(final Date date) 

Method Source Code

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

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

public class Main {
    public static String DateTimeFormat(final Date date) {
        SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd hh:mm:ss");
        return format.format(date);
    }/*from w w w. j  a  va  2 s .c  om*/
}

Related

  1. dateFormatUTC()
  2. dateTime2Str(Date date, String pattern)
  3. dateTime2String(Date value)
  4. dateTime2StringFs(Date date)
  5. dateTimeFormat(Date dateTime)
  6. dateTimeFormatterDate(Date date)
  7. dateTimeToMillis(String dateTime, String format)
  8. dateTimeToStr(Date date, String format)
  9. dateTimeToZuluFormat(DateTime dateTime)