thieumao

get Date Time in Android

Aug 24th, 2014
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.13 KB | None | 0 0
  1.             //yyyyMMdd_HHmmss
  2.             SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd");
  3.             String currentDateandTime = sdf.format(new Date());
Advertisement
Add Comment
Please, Sign In to add comment