jdk1.8日期转换(Date、LocalDate、LocalDateTime、Timestamp之间转换)

仅记录一下

// Copyright 2016-2101 Pica.
package com.pica.cloud.health.sms.common.utils;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * @ClassName SmsDateUtil
 * @Description 时间处理工具类
 * @Author Chongwen.jiang
 * @Date 2019/6/11 15:53
 * @ModifyDate 2019/6/11 15:53
 * @Version 1.0
 */
public class SmsDateUtil implements Serializable {
   
    public static final String DATE_YYYYMM_PATTERN = "yyyyMM";
    public static final String DATE_YEAR_MONTH_PATTERN = "yyyy-MM";
    public static final String DATE_YEAR_PATTERN = "yyyy";
    public static final String DATE_PATTERN = "yyyy-MM-dd";
    public static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_SHORTTIME_PATTERN = "yyyy-MM-dd HH:mm";
    public static final String DATE_PATTERN_2 = "yyyy/MM/dd";
    public static final String DATE_POINT_PATTERN = "yyyy.MM.dd";
    public static final String DATE_POINT2_PATTERN = "yyyy.MM";
    public static final String DATE_YYYYMMDDHHmm = "yyyy年MM月dd日 HH:mm";
    public

你可能感兴趣的:(工具查阅,jdk1.8日期转换)