Here you can find the source of getDateTimeString(long dateTime)
public static String getDateTimeString(long dateTime)
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getDateTimeString(long dateTime) { SimpleDateFormat format = new SimpleDateFormat("HH:mm dd/MM/yy"); StringBuilder dateString = new StringBuilder( format.format(dateTime)); return dateString.toString(); }//from w w w. j a v a 2s. c o m }