Is it possible to create one DateTimeParser that will parse:
- dates with time
- dates without time (assuming time will be the beginning of the day)
- times without dates (expected date should be today)
or do I need to have three separate parsers and try parsing strings with each of them?
In other words, is it possible to define optional fields in the parser?
source share