package com.cxqy.business.modules.help.contsant;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @Author yjl
* @Date 2021/7/21 15:46
* @Version 1.0
*/
public class HuTool {
public static void main(String[] args) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm");
try {
Date dt = df.parse("2021-09-16 23:59");
Date dt2 = df.parse("2021-09-14 23:59");
if (dt.getTime() > dt2.getTime()){
System.out.println("哈哈哈");
}else {
System.out.println("哈");
}
} catch (ParseException e) {
e.printStackTrace();
}
}
}