public final class JSONDateUtils
extends java.lang.Object
Constructor and Description |
---|
JSONDateUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
toDate(java.lang.String date)
Convert string to date.
|
static java.lang.String |
toString(java.util.Date date)
Convert date to string.
|
public static java.lang.String toString(java.util.Date date) throws org.json.JSONException
date
- date.org.json.JSONException
public static java.util.Date toDate(java.lang.String date) throws org.json.JSONException
date
- date.org.json.JSONException
- if string has a wrong format or is null.