Guest User

Untitled

a guest
Jan 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. String timeFormat = "dd.MM.yy, h:mm a";
  2. Calendar c = Calendar.getInstance();
  3. SimpleDateFormat df = new SimpleDateFormat(timeFormat);
  4. String formattedDate = df.format(c.getTime());
  5. Log.d("print"+c.getTime());
Add Comment
Please, Sign In to add comment