Modifier and Type | Field and Description |
---|---|
static String |
DATE_PATTERN |
static String |
DATE_TIME_PATTERN |
Constructor and Description |
---|
StringConverter() |
Modifier and Type | Method and Description |
---|---|
static Date |
toDate(String s) |
static Date |
toDate(String s,
String pattern) |
static LocalDate |
toLocalDate(String s) |
static LocalDate |
toLocalDate(String s,
String pattern) |
static LocalDateTime |
toLocalDateTime(String s) |
static LocalDateTime |
toLocalDateTime(String s,
String pattern) |
static String |
toString(Date d) |
static String |
toString(LocalDate d) |
static String |
toString(LocalDate d,
String pattern) |
static String |
toString(LocalDateTime dt) |
static String |
toString(LocalDateTime dt,
String pattern) |
public static final String DATE_PATTERN
public static final String DATE_TIME_PATTERN
@Nullable public static Date toDate(@Nullable String s) throws StringParsingException
StringParsingException
@Nullable public static Date toDate(@Nullable String s, String pattern) throws StringParsingException
StringParsingException
@Nullable public static LocalDate toLocalDate(@Nullable String s) throws StringParsingException
StringParsingException
@Nullable public static LocalDate toLocalDate(@Nullable String s, String pattern) throws StringParsingException
StringParsingException
@Nullable public static String toString(@Nullable LocalDateTime dt)
@Nullable public static String toString(@Nullable LocalDateTime dt, String pattern)
@Nullable public static LocalDateTime toLocalDateTime(@Nullable String s) throws StringParsingException
StringParsingException
@Nullable public static LocalDateTime toLocalDateTime(@Nullable String s, String pattern) throws StringParsingException
StringParsingException
Copyright © 2018 SAP SE. All rights reserved.