Advertisement
psi_mmobile

Untitled

Feb 21st, 2020
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1.                 SimpleDateFormat dateFormat = new SimpleDateFormat("DD/MM/YYYY HH24:MI:SS");
  2.                 String dateString = dateFormat.format(this.addBadgeDate);
  3.                 dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
  4.                 try {
  5.                     this.addBadgeDate = new Date(dateFormat.parse(dateString).getTime());
  6.                 } catch (Exception e) {
  7.                     log.error(e.getMessage(), e);
  8.                 }
  9.  
  10.                 userAddEventManipulation.setDate(5, this.addBadgeDate);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement