工业级运维app手机api
xufenglei
2017-11-02 2c270281a0d44d02a7a2f1a9a52bd72a054e8317
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;
    }
}