Replies: 1 comment
-
That's about as good as you can get for a task like that. Just note that locale-based formats (like DDD) can change and really are not great for parsing. They work basically by looking at the output of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heyyy,
I'm trying to extract a date from a sentence. I know the date format and locale of the date but the sentence containing the date may change.
To do this I came up with the following:
This works surprisingly well but does feel a bit hacky. I was just wondering if there's a "better" way to achieve the same result or if you can see any issues with this code 👀
Beta Was this translation helpful? Give feedback.
All reactions