simple date format

String to Date Java

After converting Date to String, let us see the other way of converting String to Date. The same java.text.SimpleDateFormat class used in Date to String is used here. Following code on String to Date explains. import java.util.Date; import java.text.SimpleDateFormat; import java.text.ParseException; public class StringDate { public static void main(String args[]) { try { // take …

String to Date Java Read More »