You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-develop/src/test/MainTest.java

24 lines
491 B
Java

package test;
import weaver.common.DateUtil;
import weaver.hrm.common.Tools;
import java.time.LocalDate;
import java.time.Period;
import java.time.format.DateTimeFormatter;
/**
* @Author weaver_cl
* @Description:
* @Date 2022/10/9
* @Version V1.0
**/
public class MainTest {
public static void main(String[] args) {
String currentDate = Tools.getCurrentDate();
String yesterDay = DateUtil.addDate(currentDate, -1);
System.out.println(yesterDay);
}
}