public class DateUtils extends Object
DateFormat
Modifier and Type | Field and Description |
---|---|
static SimpleDateFormat |
DEFAULT_DATE_FORMAT |
Modifier and Type | Method and Description |
---|---|
static Date |
getDate(String yyyyMMdd)
Returns the date from the given value parsed by the date format.
|
static String |
getStandardDate(Date date)
Returns the Date as String formated by the date format.
|
static void |
setDateFormat(DateFormat dateFormat)
Sets the date format.
|
public static final SimpleDateFormat DEFAULT_DATE_FORMAT
public static Date getDate(String yyyyMMdd) throws ParseException
ParseException
public static String getStandardDate(Date date)
public static void setDateFormat(DateFormat dateFormat)
Copyright © 2004–2016. All rights reserved.