后台Java获取当前系统时间,获取格式为“yyyy-MM-dd HH:mm:ss”

通过Date类获取

		Date day = new Date();    
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
		System.out.println(df.format(day));  

猜你喜欢

转载自blog.csdn.net/weixin_43992507/article/details/84950161