Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Date hoy = Calendar.getInstance().getTime();
  2. //armamos la fecha con el formato DD.MM.AAAA
  3. String shoy = DateFormat.getDateInstance(DateFormat.MEDIUM).format(hoy).toString();
  4. fechainf.setText(shoy);
  5. String fDate = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(hoy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement