You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are using dot net version, The problem is that there is some problems with recognizing statements that start with year first '2014, Feb 17' or '2014 Feb 17', its able to pickup the month and day but its not picking up the year.
To Reproduce
Use below phrases
"2014, Feb 17 Lorem Ipsum is simply dummy text of the printing and typesetting industry."
"2014 Feb 17 Lorem Ipsum is simply dummy text of the printing and typesetting industry."
Expected behavior
It should pickup the year also and return "17-03-2014".
Sample input/output
As applicable, add examples of text input and json output to help explain the problem.
Platform (please complete the following information):
Platform: .NET
Environment: nuget package
Version of package v1.8.6
Additional context
Right now i resolve it using regex pattern replace like below: Regex.Replace(input, @"\b(?<year>\d{2,4})\s(?<month>[a-z]{3,9})\s(?<day>\d{1,2})\b", "${day}-${month}-${year}", RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(150));
The text was updated successfully, but these errors were encountered:
tellarin
changed the title
Date Time Recognize Error
[EN DateTimeV2] Issue recognizing dates in non-standard form (year missed)
Mar 18, 2023
Describe the bug
We are using dot net version, The problem is that there is some problems with recognizing statements that start with year first '2014, Feb 17' or '2014 Feb 17', its able to pickup the month and day but its not picking up the year.
To Reproduce
Use below phrases
Expected behavior
It should pickup the year also and return "17-03-2014".
Sample input/output
As applicable, add examples of text input and json output to help explain the problem.
Platform (please complete the following information):
Additional context
Right now i resolve it using regex pattern replace like below:
Regex.Replace(input, @"\b(?<year>\d{2,4})\s(?<month>[a-z]{3,9})\s(?<day>\d{1,2})\b", "${day}-${month}-${year}", RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(150));
The text was updated successfully, but these errors were encountered: