Here you can find the source of getDateTimeString(long dateTime)
public static String getDateTimeString(long dateTime)
//package com.java2s; //License from project: Open Source License 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 va 2 s .c om*/ }