chrono
chrono copied to clipboard
Ability to restrict dates to the past would be useful
We have an application where only dates in the past are allowed to be used. Would be good if there was a flag on parse/parseDate that would not return any future dates.
I second this. I have the same need were days of the week are given for events within the last 7 days, but depending on how close the day is to reference date it can be in the future which is not desirable for the application.
This is related to #211 but opposite. Will a custom refiner works for your use case?
If you had a refiner that worked in the opposite way, this would satisfy my use case certainly.
This would be great 👍