dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Returning a hint whether the parsing was deterministic or not

Open alishaarora opened this issue 11 months ago • 0 comments

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.

alishaarora avatar Mar 04 '24 07:03 alishaarora