SyntaxFix
Write A Post
Hire A Developer
Questions
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)