工业级运维app手机api
xufenglei
2017-11-06 3f28569194b49383d0ab39620de344fb42ccab3f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.moral.monitor.util;
 
import java.text.SimpleDateFormat;
import java.util.Date;
 
/**
 * Created by a on 2017/4/27.
 */
public class DateConvert {
 
    public static String dateConvert(Date date){
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = formatter.format(date);
        return format;
    }
}