Examples
Basic Examples (2)
Interpret an ambiguous date string:
Interpret ambiguous strings with date and time information:
Strings in year-first form are always assumed to be in the ISO standard year-month-day form:
Scope (4)
Interpret multiple strings at a time:
Specify your own preferred formats to break ambiguity:
Specify a custom function to apply to the ambiguity data in the form of an Association to make it easier to pick compatible interpretations:
Use a more restrictive Interpreter to parse only pure date strings:
Properties and Relations (2)
DateAmbiguityBreak uses an AmbiguityFunction to find the desired interpretation from an AmbiguityList:
Note that unambiguous strings do not get placed in an AmbiguityList.
When the year is given by only two digits, a year-last interpretation is always preferred since the ISO standard mandates four year digits. Thus, dd-mm-yy takes precedence over yy-mm-dd:
mm-dd-yy takes precedence over yy-mm-dd:
Possible Issues (1)
Any date string that's completely unambiguous will be interpreted, even if it's incompatible with the specified pattern:
Publisher
Sjoerd Smit
Version History
-
1.0.1
– 14 August 2024
-
1.0.0
– 15 August 2022
Related Resources