刘韬 2 年之前
父节点
当前提交
6b1ca33838
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      DataFusion/src/com/zskk/task/PrintNumTask.java
  2. 2 2
      DataFusion/src/com/zskk/task/PrintTask.java

+ 1 - 1
DataFusion/src/com/zskk/task/PrintNumTask.java

@@ -62,7 +62,7 @@ public class PrintNumTask implements ITask {
 		if (dateStr == null) {
 			return "";
 		}
-		SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMdd");
+		SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
 	    Date date = null;
 	    String timeString = null;
 		try {

+ 2 - 2
DataFusion/src/com/zskk/task/PrintTask.java

@@ -60,12 +60,12 @@ public class PrintTask implements ITask {
 		if (dateStr == null) {
 			return "";
 		}
-		SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMdd");
+		SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 	    Date date = null;
 	    String timeString = null;
 		try {
 			date = sdf.parse(dateStr);
-			SimpleDateFormat sdf2= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+			SimpleDateFormat sdf2= new SimpleDateFormat("yyyyMMdd");
 
 			timeString = sdf2.format(date);
 		} catch (ParseException e) {