How to model an end date which might not end in the near future. I have a start (mandatory) & end date and end date can be by the user or marked as doesn’t have an end date.
- How do you model this, so that I can handle queries effectively. Should I leave the end date as null and introspect accordingly.
- How do I render such a selection for end date in the UI.
You have two choices
The first option “feels” more correct but makes range checking more complex. The second option makes range checking easier, but requires special handling in the UI to display it as “no end date”.
Take your pick.