Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. String pattern = "yyyy-MM-dd";
  2. SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
  3.  
  4. Date date = simpleDateFormat.parse("2012-12-24");
Add Comment
Please, Sign In to add comment