Skip to content

Instantly share code, notes, and snippets.

@victorvaz
Created October 30, 2015 02:21
Show Gist options
  • Save victorvaz/0abdd67b5df7d31a8da4 to your computer and use it in GitHub Desktop.
Save victorvaz/0abdd67b5df7d31a8da4 to your computer and use it in GitHub Desktop.
Pegar data atual com java
String dataHoraAtual = new SimpleDateFormat("dd/MM/yyyy H:m:s").format(new Date());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment