I always forget how to get the current time in my timezone in Java. Here’s what I found to be the easiest way to do so:

Date now = Calendar.getInstance().getTime();

And if you want it in a different timezone:

Date now = Calendar.getInstance(TimeZone.getTimeZone("Europe/London")).getTime();

There it is. Super simple once you actually remember it 😀 Enjoy!