Skip to content

Instantly share code, notes, and snippets.

@tomraithel
Created March 9, 2012 16:43
Show Gist options
  • Save tomraithel/2007425 to your computer and use it in GitHub Desktop.
Save tomraithel/2007425 to your computer and use it in GitHub Desktop.
Java: Simple Date Format
Date dt = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd_HH-mm");
setTest(df.format(dt));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment