public interface Formatter
| Modifier and Type | Method and Description |
|---|---|
String |
format(String pattern,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi,
Date date)
Convert a date object into a date string with the specified pattern and
DateTimeFormatInfo |
Date |
parse(String pattern,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi,
String dateString)
parse the date string and produce a
Date object |
Date |
parseStrict(String pattern,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi,
String dateString)
parse the date string with strict formatting, if the date string does not match the date
pattern this method should throw
IllegalArgumentException |
Date parseStrict(String pattern, org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi, String dateString)
IllegalArgumentExceptionpattern - String date patterndtfi - DateTimeFormatInfodateString - String date valueDate parse(String pattern, org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi, String dateString)
Date objectpattern - String date patterndtfi - DateTimeFormatInfodateString - String date valueString format(String pattern, org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dtfi, Date date)
DateTimeFormatInfopattern - String date patterndtfi - DateTimeFormatInfodate - DateCopyright © 2019–2022 Dominokit. All rights reserved.