Date now = new Date(); 
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd HH:mm:ss");//可以方便地修改日期格式


		String hehe = dateFormat.format( now ); 
		System.out.println(hehe); 

java获得当前时间_日期格式