Skip to content

[FR - DateTime] Recognize year number #3180

@quangngoc

Description

@quangngoc

Describe the bug
In French, it's common to use "mil" instead of "mille" to denote years in official documents. For instance, "deux juillet deux mil vingt deux" should be interpreted as July 2, 2022. However, this is not recognized correctly

To Reproduce
Steps to reproduce the behavior:

  1. Try DateTimeRecognizer.RecognizeDateTime("deux juillet deux mil vingt deux", "fr-fr")
  2. Only "deux juillet" is recognized

Expected behavior
It should return 2022-07-02

Platform (please complete the following information):

  • Platform: .NET
  • Environment: nuget package
  • Version of package: v1.8.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions