修改时间
This commit is contained in:
@@ -499,7 +499,7 @@ public class HttpClientExample {
|
||||
|
||||
// 使用年月日作为文件名(格式:result_yyyyMMdd.json)
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String dateStr = dateFormat.format(new Date());
|
||||
String dateStr = DateUtils.getTodayDate();
|
||||
String fileName = "result_" + dateStr + ".json";
|
||||
String filePath = directoryPath + "/" + fileName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user