JAVA.UTIL日期格式

Date d = new Date();
		Calendar ca = Calendar.getInstance();
		ca.setTime(d);
		System.out.println(ca.get(Calendar.SUNDAY));
		SimpleDateFormat formate1=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss E");
		System.out.println(formate1.format(d));

 

你可能感兴趣的:(java)