Skip to content

Instantly share code, notes, and snippets.

@nandub
Created May 30, 2009 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nandub/120352 to your computer and use it in GitHub Desktop.
Save nandub/120352 to your computer and use it in GitHub Desktop.
java.util.Date = java.text.DateFormat.getDateInstance().parse(date String);
//or
SimpleDateFormat format = new SimpleDateFormat( "dd.MM.yyyy" );
Date date = format.parse( myString );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment