SimpleDateFormat fm = new SimpleDateFormat("MMM d yyyy hh:mma", Locale.US); fm.setTimeZone(TimeZone.getTimeZone("GMT+8")); Date date = new Date(); System.out.println(date); System.out.println(fm.format(date));
SimpleDateFormat fm = new SimpleDateFormat("MMM d yyyy hh:mma", Locale.US);fm.setTimeZone(TimeZone.getTimeZone("GMT+8"));Date date = new Date();System.out.println(date);System.out.println(fm.f