chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Ability to restrict dates to the past would be useful

Open bcowgill opened this issue 8 years ago • 4 comments

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.

bcowgill avatar Feb 02 '17 08:02 bcowgill

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.

CCob avatar Mar 21 '17 20:03 CCob

This is related to #211 but opposite. Will a custom refiner works for your use case?

wanasit avatar Aug 20 '17 05:08 wanasit

If you had a refiner that worked in the opposite way, this would satisfy my use case certainly.

CCob avatar Aug 20 '17 21:08 CCob

This would be great 👍

mikekreeki avatar Feb 11 '22 09:02 mikekreeki