摘要:
System.out.println("Hello World!"); SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss");//设置时间格式 Date currentTime = new Date();//获取当前时间 String date=format.format(currentTime);//对... 阅读全文
摘要:
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar c = Calendar.getInstance(); //过去七天 c.setTime(new Date()); c.add(Calendar.DATE, - 7); Date d = c.getTime()... 阅读全文