/** * Uinx 时间戳转 字符日期 * @param dateLong * @return */ public static String longToStr(Long dateLong){ if(dateLong == null || dateLong == 0L){ return ""; } SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd "); String result = simpleDateFormat.format(new Date(dateLong * 1000L)); return result; }