futian.liu
2023-12-02 8e41786892a4bd7cff2d63bde8cb0636cdb0650c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.consum.base.core.utils;
 
import com.walker.infrastructure.utils.DateUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
 
public class DateUtil extends DateUtils {
 
 
    /**
     * 返回14位年月日时分秒 20230912081256
     *
     * @return
     */
    public static Long getCurrentDateFor14() {
        Date date = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        return Long.valueOf(dateFormat.format(date));
    }
}