SimpleDateFormat from = new SimpleDateFormat("yyyy-MM-dd(黑马时间)"); String time=from.format(19920726); System.out.println(time);