Java Date Time to String dateTimeToString(final Date date)

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

Description

Date time to string.

License

Open Source License

Parameter

Parameter Description
date the date
timeZone the time zone

Return

the string

Declaration

public static String dateTimeToString(final Date date) 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /** The Constant DATE_TIME. */
    private static final SimpleDateFormat DATE_TIME = new SimpleDateFormat("dd/MM/yyyy HH:mm");

    /**/*from  www .j ava  2 s  .  c o  m*/
     * Date time to string.
     * 
     * @param date
     *            the date
     * @param timeZone
     *            the time zone
     * @return the string
     */
    public static String dateTimeToString(final Date date) {
        String result = "";
        result = DATE_TIME.format(date);
        return result;
    }
}

Related

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