// UTC time
SimpleDateFormat utcdatestr = new SimpleDateFormat("yyyyMMddHHmmssSSS");
utcdatestr.setTimeZone(TimeZone.getTimeZone("UTC"));
Date utcdate = utcdatestr.parse(dateOrg);
// JST time
SimpleDateFormat tokyoSdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
tokyoSdf.setTimeZone(TimeZone.getTimeZone("Asia/Tokyo"));
date = tokyoSdf.format(utcdate);
Recommended Posts