Here you can find the source of dateTimeToString(final Date date)
public static String dateTimeToString(final Date date)
//package com.java2s; import java.text.DateFormat; import java.util.Date; public class Main { public static String dateTimeToString(final Date date) { if (date == null) return "Never"; return DateFormat.getDateTimeInstance().format(date); }/*from w w w. j a v a 2 s .co m*/ }