public static String convertTimestampToDateString(boolean useUTC,long milli){
  Date date=new Date(milli);
  SimpleDateFormat sourceFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  sourceFormat.setTimeZone(useUTC ? TimeZone.getTimeZone("UTC") : TimeZone.getDefault());
  return sourceFormat.format(date);
}

public static String convertTimestampToDateString ( boolean useUTC , long milli ) { Date date = new Date ( milli ) ; SimpleDateFormat sourceFormat = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ; sourceFormat . setTimeZone ( useUTC ? TimeZone . getTimeZone ( "UTC" ) : TimeZone . getDefault ( ) ) ; return sourceFormat . format ( date ) ; }
convert a timestamp in milliseconds into a human readable string format
