public class DateUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FINANCIAL_YEAR_START_MONTH |
static SimpleDateFormat |
REPORT_DATE_FORMAT |
static SimpleDateFormat |
SIMPLE_DAY_FORMAT |
static SimpleDateFormat |
SIMPLE_DAY_TIME_FORMAT |
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Date date,
String pattern)
Format date with UTC time zone.
|
static String |
formatFullTime(Date date) |
static String |
formatFullTime(Date date,
TimeZone timeZone) |
static String |
formatSimpleDate(Date date) |
static String |
fromatFullTime(Date date)
TODO Wrong Name
|
static Date |
parse(String pattern,
String dateStr) |
static Date |
parseFullTime(String str) |
static Date |
parseFullTime(String str,
TimeZone timeZone) |
static Date |
parseSimpleDate(String string,
Date defaultDate) |
public static final int FINANCIAL_YEAR_START_MONTH
public static final SimpleDateFormat SIMPLE_DAY_FORMAT
public static final SimpleDateFormat SIMPLE_DAY_TIME_FORMAT
public static final SimpleDateFormat REPORT_DATE_FORMAT
public static Date parseFullTime(String str) throws ParseException
ParseExceptionpublic static Date parseFullTime(String str, TimeZone timeZone) throws ParseException
ParseExceptionpublic static Date parse(String pattern, String dateStr) throws ParseException
ParseExceptionCopyright © 2019. All rights reserved.