java获取当前时间的年月日时分秒
解决方法:
/**
* 获取当前时间
*/
public static String getFomartDate(String format){
return new SimpleDateFormat(format).format(new Date());
}
例如,获取当前时间的年月日时分秒
String current_time=getFomartDate("yyyy-MM-dd HH:mm:ss")
本文链接:http://www.yayihouse.com/yayishuwu/chapter/1565
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti