public class DateConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT
Date format
|
static String |
DATE_FORMAT2
Non standard Date format
|
static String |
DATETIME_FORMAT
Date Time format
|
static String |
DATETIME_FORMAT2
Secondary Date Time format w/o milliseconds for parsing string dates
|
| Modifier and Type | Method and Description |
|---|---|
static DateConverter |
converter(GeoPackageDataType type)
Get a date converter for the data type
|
static DateConverter |
dateConverter()
Get a date converter
|
static DateConverter |
dateTimeConverter()
Get a date time converter
|
Date |
dateValue(String date)
Get the date value of the formatted string date
|
String |
stringValue(Date date)
Get the formatted string date value of the date
|
public static final String DATE_FORMAT
public static final String DATE_FORMAT2
public static final String DATETIME_FORMAT
public static final String DATETIME_FORMAT2
public static DateConverter converter(GeoPackageDataType type)
type - data typepublic static DateConverter dateConverter()
public static DateConverter dateTimeConverter()
public String stringValue(Date date)
date - dateCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.