Class ENDayMonthYearParser


public final class ENDayMonthYearParser extends MonthNameParser
English parser that handles day-month-year dates like "3rd of August, 2025". The day and the year are optional. If the day is missing, it is assumed to be 1. If the year is missing, it is implied based on the reference date.

If this parser finds an invalid day, it will shift the start index so the invalid day would not get included in the resulting ParsedComponent. For example, the date "32nd of April, 2025" would be parsed as "April, 2025".

Since:
1.0.0
Author:
hashadex
  • Constructor Details

    • ENDayMonthYearParser

      public ENDayMonthYearParser()
      Constructs the parser.
      Since:
      1.0.0