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 org.joda.time.LocalDate |
toLocalDate(String s) |
static org.joda.time.LocalDate |
toLocalDate(String s,
String pattern) |
static org.joda.time.LocalDateTime |
toLocalDateTime(String s) |
static org.joda.time.LocalDateTime |
toLocalDateTime(String s,
String pattern) |
static String |
toString(Date d) |
static String |
toString(org.joda.time.LocalDate d) |
static String |
toString(org.joda.time.LocalDate d,
String pattern) |
static String |
toString(org.joda.time.LocalDateTime dt) |
static String |
toString(org.joda.time.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 String toString(@Nullable org.joda.time.LocalDate d, String pattern)
@Nullable public static org.joda.time.LocalDate toLocalDate(@Nullable String s) throws StringParsingException
StringParsingException
@Nullable public static org.joda.time.LocalDate toLocalDate(@Nullable String s, String pattern) throws StringParsingException
StringParsingException
@Nullable public static String toString(@Nullable org.joda.time.LocalDateTime dt, String pattern)
@Nullable public static org.joda.time.LocalDateTime toLocalDateTime(@Nullable String s) throws StringParsingException
StringParsingException
@Nullable public static org.joda.time.LocalDateTime toLocalDateTime(@Nullable String s, String pattern) throws StringParsingException
StringParsingException
Copyright © 2018 SAP SE. All rights reserved.