Commit 8b676502 by 陶湘宇 Committed by 284718418@qq.com

修复穗港跨天打卡bug

parent 7a645016
...@@ -233,7 +233,17 @@ public class ClockInTool { ...@@ -233,7 +233,17 @@ public class ClockInTool {
} }
return date; return date;
} }
// 将字符串转化为日期
public static Date paraseStringToDate(String timestr,String format){
Date date = null;
Format f = new SimpleDateFormat(format);
try {
date = (Date) f.parseObject(timestr);
} catch (ParseException e) {
e.printStackTrace();
}
return date;
}
/*** /***
* 去除String数组中的空值 * 去除String数组中的空值
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment