Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
  2. Date date = new Date();
  3. System.out.println(dateFormat.format(date)); //2014/08/06 15:59:48
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement