SyntaxFix
Write A Post
Hire A Developer
Questions
You can do:
timeStamp.toLocalDateTime().toLocalDate();
Note that timestamp.toLocalDateTime() will use the Clock.systemDefaultZone() time zone to make the conversion. This may or may not be what you want.
timestamp.toLocalDateTime()
Clock.systemDefaultZone()