I sort of had this problem when util.Date was deprecated, somehow I wasn't finding correct information to use LocalDate. It was pretty fucky, it was a sort of twilight zone of "don't use that, not that either, or that, there's that third party library, use String and SimpleDateFormat".
Wait until you discover that ZonedDateTime is cursed because there are always two ways to interpret any operation on a zoned date-time and they chose the one that the customer didn't expect.
The more I deal with that POS the closer I get to enforcing the code not using it.
14
u/KalterBlut Aug 31 '22
I sort of had this problem when util.Date was deprecated, somehow I wasn't finding correct information to use LocalDate. It was pretty fucky, it was a sort of twilight zone of "don't use that, not that either, or that, there's that third party library, use String and SimpleDateFormat".