Commit b1b9f598 authored by 华润's avatar 华润

更新代码

parent 8fc150ab
......@@ -1459,7 +1459,7 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
temp_str = sdf.format(dt);
System.out.println(temp_str);//输出当前年月日
//2.获取上年的年月日
//2.获取上年的年月日
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date date = null;
try {
......@@ -1473,7 +1473,7 @@ public class TyfbxwInfoImp extends XMLUtil implements TyfbxwInfoService {
calBegin.setTime(date);
calBegin.add(Calendar.MONTH, -6);
String datestr = formatter.format(calBegin.getTime());// String格式
System.out.println(datestr);//输出上年月日
System.out.println(datestr);//输出上年月日
//---------------------------------------------------------------------------------
while (true) {
......
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