mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
新增吉林省平台-接口
This commit is contained in:
@@ -1196,4 +1196,16 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
||||
).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 将字符串yyyy-MM-dd格式的日期转换为yyyy-MM-dd HH:mm:ss格式的日期字符串
|
||||
* @param dateStr
|
||||
* @return
|
||||
*/
|
||||
public static String convertDateToDateTime(String dateStr) {
|
||||
LocalDate endLocalDate = LocalDate.parse(dateStr);
|
||||
LocalDateTime endLocalDateTime = endLocalDate.atStartOfDay();
|
||||
return endLocalDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user