All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.javaoffers.brief.modelhelper.convert.String2LocalDateConvert Maven / Gradle / Ivy

There is a newer version: 3.6.8
Show newest version
package com.javaoffers.brief.modelhelper.convert;

import java.time.LocalDate;
import java.util.Date;

/**
 * @Description: String2LocalDateConvert
 * @Auther: create by cmj on 2021/12/10 13:16
 */
public class String2LocalDateConvert extends AbstractConver {

    @Override
    public LocalDate convert(String s) {
        Date date = String2DateConvert.convert2(s);
        return LocalDate.of(date.getYear()+1900,date.getMonth()+1,date.getDate());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy