Since the results of before and after of the Date class were subtly difficult to understand if they were sentences, I tried to express it with a number line.
Below, both base and arg are Date type. base.before(arg)
base.after(arg)
Result: Easy to understand!
Recommended Posts