public class ToDateParser extends Object
Modifier and Type | Method and Description |
---|---|
static ValueTimestamp |
toDate(String input,
String format)
Parse a string as a date with the given format.
|
String |
toString() |
static ValueTimestamp |
toTimestamp(String input,
String format)
Parse a string as a timestamp with the given format.
|
static ValueTimestampTimeZone |
toTimestampTz(String input,
String format)
Parse a string as a timestamp with the given format.
|
public static ValueTimestamp toTimestamp(String input, String format)
input
- the inputformat
- the formatpublic static ValueTimestampTimeZone toTimestampTz(String input, String format)
input
- the inputformat
- the formatpublic static ValueTimestamp toDate(String input, String format)
input
- the inputformat
- the formatCopyright © 2020 JBoss by Red Hat. All rights reserved.