I have an external API that returns me dates as longs, represented as milliseconds since the beginning of the Epoch.
long
With the old style Java API, I woul
Timezones and stuff aside, a very simple alternative to new Date(startDateLong) could be LocalDate.ofEpochDay(startDateLong / 86400000L)
new Date(startDateLong)
LocalDate.ofEpochDay(startDateLong / 86400000L)