Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict parsing the date without required data. #1362

Open
bwala-eightfold opened this issue Apr 17, 2024 · 1 comment
Open

Restrict parsing the date without required data. #1362

bwala-eightfold opened this issue Apr 17, 2024 · 1 comment

Comments

@bwala-eightfold
Copy link

bwala-eightfold commented Apr 17, 2024

Here are some examples I am referring to
parse(10) => datetime(yearToday, monthToday, 10)
parse(10-10) => datetime(yearToday, 10, 10)
etc.

So in these examples, some parameters out of 3 (month, year or day) are missing.

I want to restrict parse to not parse the date if any one of them looks like missing

How can I achieve this?

@bwala-eightfold
Copy link
Author

@zamanehsani Do you have any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant