posted 4 weeks ago
Stop using Calendar. A really dreadful class. Use LocalDate instead: look in the Java™ Tutorials for more information. The tutorials might even tell you how to use before and after.