yshyee
public static String getComparedSBQDate(String yxqq,String starttime){
        String str = starttime;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);
        try {
            Date d1 = sdf.parse(yxqq);
            Date d2 = sdf.parse(starttime);
            if(d1.before(d2)){
                 str = starttime;
            }else{
                 str = yxqq;
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return str;
    }

 

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案