public final class Dates extends Object
Internal API: these methods are part of the internal API and may be removed, have their signature change, or have their access level decreased from public to protected, package, or private in future versions without notice.
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Date date,
String pattern)
Format date according to given pattern.
|
static Long |
getTime(String date,
String pattern,
String... patterns)
Parse date using given pattern and return time value.
|
public static Long getTime(String date, String pattern, String... patterns)
ParseException.date - Date.pattern - Pattern.patterns - Other pattern to test.Copyright © 2019. All rights reserved.