Just to make this simpler, to create a Date
in UTC
you can use Calendar :
Calendar.getInstance(TimeZone.getTimeZone("UTC"));
Which will construct a new instance for Calendar
using the "UTC" TimeZone
.
If you need a Date
object from that calendar you could just use getTime()
.