Commit ed7ee72f authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/MVP1.7.16' into MVP1.7.16

parents 858b8453 e56aa900
...@@ -126,10 +126,11 @@ public class IdCardUtil { ...@@ -126,10 +126,11 @@ public class IdCardUtil {
String month = birthDateMather.group(2); String month = birthDateMather.group(2);
String datetemp = birthDateMather.group(3); String datetemp = birthDateMather.group(3);
String dateStr =year+"-"+month+"-"+datetemp; String dateStr =year+"-"+month+"-"+datetemp;
SimpleDateFormat sdf = new SimpleDateFormat( patten ); SimpleDateFormat sdfInput = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfOut = new SimpleDateFormat( patten );
try { try {
Date shijian =sdf.parse(dateStr); Date shijian =sdfInput.parse(dateStr);
returnDateStr = sdf.format(shijian); returnDateStr = sdfOut.format(shijian);
} catch (ParseException e) { } catch (ParseException e) {
//数据有误 //数据有误
} }
......
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