1.优化数仓同步日期过滤

S
This commit is contained in:
weiyunlong 2025-02-10 17:38:12 +08:00
parent aa5b9b3edd
commit b4f3605d8d
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class DobeDWUtils {
public static String getDateString(Date billDate){
//创建一个SimpleDateFormat对象定义目标日期格式
SimpleDateFormat targetFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat targetFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//格式化Date对象为新的字符串格式
if(billDate == null){
return targetFormat.format(new Date());