摘要:
直接上方法: public static void main(String[] args) { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = new Date(); date.setTim 阅读全文
摘要:
public static int getUserAge(Date birthDay) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date birthDayAge = sdf.parse 阅读全文