dateparser
dateparser copied to clipboard
Returning a hint whether the parsing was deterministic or not
We have a use case where we need to get all possible combinations of date in case the format is non deterministic. For example, 3/4/2023 where parser won't know which is date and which is month. In this case, could we provide one of the options:
- Either provide both possible dates
- Or, return a hint that the group was "dayOfMonth" in which case, the caller can use the parsed date to convert to the alternate format and later resolve the conflict based on the use case.