Here you can find the source of convertDateFromLong(Long val)
public static String convertDateFromLong(Long val)
//package com.java2s; //License from project: LGPL import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String convertDateFromLong(Long val) { Date date = new Date(val); SimpleDateFormat df2 = new SimpleDateFormat("dd/MM/yy"); String dateText = df2.format(date); return dateText; }/*from w ww .j a v a 2 s . c o m*/ }