赞
踩
方法:
public static String getFomartDate(String format){ return new SimpleDateFormat(format).format(new Date()); }
调用:
String nowTime=getFomartDate("yyyy-MM-dd HH:mm:ss")