Guest User

Untitled

a guest
May 26th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
  2. Date date = format.parse("12.01.1998");
  3.  
  4. SimpleDateFormat format2 = new SimpleDateFormat("yyyy-MM-dd");
  5. String date2 = format2.format(date);
Add Comment
Please, Sign In to add comment