Java Date Time to String dateTimeToString(Date date)

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

Description

date Time To String

License

Apache License

Declaration

public static String dateTimeToString(Date date) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

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

    public static String dateTimeToString(Date date) {

        return dt.format(date);
    }//w  w w  .j  a  v a 2 s. co  m
}

Related

  1. dateTimeToString(Calendar dateTime)
  2. dateTimeToString(Date d)
  3. dateTimeToString(Date d)
  4. dateTimeToString(Date date)
  5. DateTimeToString(Date date)
  6. dateTimeToString(Date date)
  7. dateTimeToString(Date date, String formatter)
  8. dateTimeToString(final Date date)
  9. dateTimeToString(final Date date)