public class DateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
static String |
DATE_TIME_FORMAT |
static String |
DAYTIME_END |
static String |
DAYTIME_START |
static String |
DC_DATE_FORMAT |
static String |
DC_TIME_FORMAT |
| Constructor and Description |
|---|
DateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
afterDays(Date startDate,
Integer days) |
static String |
convert(Date date,
String dateFormat) |
static Date |
convert(String str) |
static int |
differentDays(Date startDate,
Date endDate) |
static Date |
getEndDatetime(Date date)
返回该天到23:59:59结束的日期
|
static List<String> |
getMonthBetweenDate(String startTime,
String endTime,
String format)
获取两个日期之间的所有月份 (年月)
|
static Date |
getStartDatetime(Date date)
返回该天从00:00:00开始的日期
|
public static final String DATE_FORMAT
public static final String DAYTIME_START
public static final String DAYTIME_END
public static final String DATE_TIME_FORMAT
public static final String DC_DATE_FORMAT
public static final String DC_TIME_FORMAT
Copyright © 2025. All rights reserved.