I have a Java Date object containing date and time information. I want to write a method that cuts off the time information so I only have the date left.
Do you have a tip? I tried doing something like this:
(timestamp / (24 * 60 * 60 * 1000)) * (24 * 60 * 60 * 1000)
but I ran into problems with the timezone.