Skip to content

Instantly share code, notes, and snippets.

@dsaiztc
Created June 7, 2014 10:31
Show Gist options
  • Save dsaiztc/defeab82b628eadf5ae4 to your computer and use it in GitHub Desktop.
Save dsaiztc/defeab82b628eadf5ae4 to your computer and use it in GitHub Desktop.
Format Date in local format.
final static DateFormat DATE_FORMAT = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.getDefault());
DATE_FORMAT.format(new Date());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment