|
|
|
@ -33,18 +33,21 @@ public class Md5Util { |
|
|
|
|
//String s = URLEncoder.encode("www.occupationlab.com", "utf-8");
|
|
|
|
|
//System.out.println(s);
|
|
|
|
|
//System.out.println(md5("1234564"));
|
|
|
|
|
System.out.println(md5("Aa123420")); |
|
|
|
|
|
|
|
|
|
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
// SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
// Date date = new Date();
|
|
|
|
|
// try {
|
|
|
|
|
// date = simpleDateFormat.parse("2021-01-06");
|
|
|
|
|
// } catch (ParseException e) {
|
|
|
|
|
// e.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// Timestamp time = DateUtils.getDayEndTime(date);
|
|
|
|
|
// System.out.println(time);
|
|
|
|
|
// System.out.println(simpleDateFormat.format(time));
|
|
|
|
|
System.out.println(md5("Aa12342")); |
|
|
|
|
|
|
|
|
|
/* SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
Date date = new Date(); |
|
|
|
|
try { |
|
|
|
|
date = simpleDateFormat.parse("2021-01-06"); |
|
|
|
|
} catch (ParseException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
}*/ |
|
|
|
|
/* Timestamp time = DateUtils.getDayEndTime(date); |
|
|
|
|
System.out.println(time); |
|
|
|
|
System.out.println(simpleDateFormat.format(time));*/ |
|
|
|
|
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
|
System.out.println(dateFormat.format(new Date())); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|