Skip to content

Instantly share code, notes, and snippets.

@maveonair
Created October 8, 2012 12:58
Show Gist options
  • Save maveonair/3852386 to your computer and use it in GitHub Desktop.
Save maveonair/3852386 to your computer and use it in GitHub Desktop.
Get pattern of a DateFormat Object
final SimpleDateFormat formatter = SimpleDateFormat.getDateInstance(DateFormat.MEDIUM, Locale.US);
final String pattern = formatter.toLocalizedPattern();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment