Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
- Date date = format.parse("12.01.1998");
- SimpleDateFormat format2 = new SimpleDateFormat("yyyy-MM-dd");
- String date2 = format2.format(date);
Add Comment
Please, Sign In to add comment