public class DateParser extends Object
| Constructor and Description |
|---|
DateParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIsoDate(Date date)
Generate a ISO 8601 date
|
static String |
getIsoDateNoMillis(Date date)
Generate a ISO 8601 date
|
static void |
main(String[] args) |
static Date |
parse(String isodate)
Parse the given string in ISO 8601 format and build a Date object.
|
static void |
test(Date date) |
static void |
test(String isodate) |
public static Date parse(String isodate)
isodate - the date in ISO 8601 formatpublic static String getIsoDate(Date date)
date - a Date instancepublic static String getIsoDateNoMillis(Date date)
date - a Date instancepublic static void test(String isodate)
public static void test(Date date)
public static void main(String[] args)
Copyright 2004-2020 Solace Corporation. All rights reserved.