public class Dates extends Object
| Modifier and Type | Method and Description |
|---|---|
static ZonedDateTime |
parse(String string)
Parse the given input
String to a ZonedDateTime instance. |
public static ZonedDateTime parse(String string)
Parse the given input String to a ZonedDateTime instance.
The aim of this method is to be as lenient as possible, so very few assumptions are made about
the input format. However, if no possible date can be parsed from the input, null is
returned.
If time is missing from the input, start of day will be set instead.
If timezone is missing from the input, UTC will be substituted.
string - a StringZonedDateTime, or nullCopyright © 2018. All rights reserved.