Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DateFormat utcFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
- utcFormat.setTimeZone(this.TIME_ZONE);
- String dateString = utcFormat.format(date);
- DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
- try {
- date.setTime(df.parse(dateString).getTime());
- } catch (ParseException e) {
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement