public class MailDateParser extends Object
Modifier and Type | Field and Description |
---|---|
static DateTimeFormatter |
DD_MMM_YY |
static DateTimeFormatter |
DD_SLASH_MM_SLASH_YYYY |
static DateTimeFormatter |
MM_SLASH_DD_SLASH_YY_HH_MM |
static DateTimeFormatter |
MM_SLASH_DD_SLASH_YY_HH_MM_AM_PM |
static DateTimeFormatter |
MM_SLASH_DD_SLASH_YYYY |
static DateTimeFormatter |
MMM_D_YYYY_HH_MM |
static DateTimeFormatter |
MMM_D_YYYY_HH_MM_AM_PM |
static DateTimeFormatter |
MMM_DD_YY |
static DateTimeFormatter |
RFC_5322 |
static DateTimeFormatter |
RFC_5322_AMPM_LENIENT |
static DateTimeFormatter |
RFC_5322_LENIENT |
static DateTimeFormatter |
YY_SLASH_MM_SLASH_DD |
static DateTimeFormatter |
YYYY_MM_DD |
static DateTimeFormatter |
YYYY_MM_DD_HH_MM |
Constructor and Description |
---|
MailDateParser() |
Modifier and Type | Method and Description |
---|---|
protected static String |
normalize(String text) |
static Date |
parseDateLenient(String text) |
static Date |
parseRFC5322(String string) |
public static final DateTimeFormatter RFC_5322
public static final DateTimeFormatter RFC_5322_LENIENT
public static final DateTimeFormatter RFC_5322_AMPM_LENIENT
public static final DateTimeFormatter MMM_D_YYYY_HH_MM_AM_PM
public static final DateTimeFormatter MMM_D_YYYY_HH_MM
public static final DateTimeFormatter MM_SLASH_DD_SLASH_YY_HH_MM
public static final DateTimeFormatter MM_SLASH_DD_SLASH_YY_HH_MM_AM_PM
public static final DateTimeFormatter YYYY_MM_DD_HH_MM
public static final DateTimeFormatter YYYY_MM_DD
public static final DateTimeFormatter MM_SLASH_DD_SLASH_YYYY
public static final DateTimeFormatter DD_SLASH_MM_SLASH_YYYY
public static final DateTimeFormatter MMM_DD_YY
public static final DateTimeFormatter DD_MMM_YY
public static final DateTimeFormatter YY_SLASH_MM_SLASH_DD
public static Date parseRFC5322(String string) throws ParseException
ParseException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.