Creates an instance of date parser.
the dates to be displayed.
the dates to be displayed.
Final date to be returned.
Checks what kind of dates have been passed. If it's a raw date, the date is returned "as is". Else, the dates are parsed and localised.
Initiates the logic to parse the date and returns the finalData
Sets the end date or the word "present" if "-" is passed.
Sets the finalDate
as the raw
date to return it "as is".
Sets the start date localized by DateLocalizer
.
Parses a date passed as a
DateModel
object and returns is as a formatted string with both the start and the end dates.