日期类型【转】字符串

日期类型 => 字符串:

		Date date = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		String strDate = sdf.format(date);
		System.out.println(strDate);

猜你喜欢

转载自blog.csdn.net/Xxacker/article/details/85305096
今日推荐