public class DateUtil
extends java.lang.Object
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFormattedDate(java.util.Calendar cal) |
static long |
parseDate(java.lang.String date)
This method parses a date and returns the corresponding value in ms.
|
public static java.lang.String getFormattedDate(java.util.Calendar cal)
public static long parseDate(java.lang.String date)
throws java.lang.Exception
date - the String representation of a Datejava.lang.Exception - if an error occurs while parsing the specified date.