Here you can find the source of dateTimeToString(final Date date)
Parameter | Description |
---|---|
date | the date |
timeZone | the time zone |
public static String dateTimeToString(final Date date)
//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; } }