Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String timeFormat = "dd.MM.yy, h:mm a";
- Calendar c = Calendar.getInstance();
- SimpleDateFormat df = new SimpleDateFormat(timeFormat);
- String formattedDate = df.format(c.getTime());
- Log.d("print"+c.getTime());
Add Comment
Please, Sign In to add comment