Skip to content

Instantly share code, notes, and snippets.

@kuraydev
Created January 9, 2016 21:37
Show Gist options
  • Select an option

  • Save kuraydev/16ad3fcf3ff8c1a888ba to your computer and use it in GitHub Desktop.

Select an option

Save kuraydev/16ad3fcf3ff8c1a888ba to your computer and use it in GitHub Desktop.
Format the current date
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String now = df.format(new Date());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment