一串字符串,可能是hh小时前,mm分钟前,或者2015-11-25这种形式,怎么换成现在时间
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); System.out.println(sdf.format(new Date()));