How to Convert String to Date in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

How to Convert String to Date in Java - Java Tutorials Corner

Statistics

  • Total Hits - 5859

  • Total Votes - 6 votes

  • Vote Up - 3 votes

  • Vote Down - 3 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Core JAVA

  • Submitted By - Appu T

  • Submitted on - 2014-03-16 09:29:45

Description

In this tutorial we are going to see how to convert String to Date using SimpleDateFormat. SimpleDateFormat is a concrete class for formatting and parse dates in a locale-sensitive manner. It allows for formatting date to text, parsing text to date an d normalization.Date and Time PatternsBelow table contains characters used in SimpleDateFormat for date time conversion. Pattern Description Example G Era designator AD y Year 2013; 96 Y Week year ... - See more at: http://www.javatutorialcorner.com/search/label/Java?updated-max=2013-11-09T21:27:00-08:00&max-results=20&start=20&by-date=false ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements