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