Java String to Date toDate(String str)

Here you can find the source of toDate(String str)

Description

to Date

License

Apache License

Declaration

public static Date toDate(String str) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;

public class Main {

    public static Date toDate(String str) throws ParseException {
        Date date = DateFormat.getDateInstance().parse(str);
        return date;
    }/*from ww w .j a va 2  s  .c  o  m*/
}

Related

  1. toDate(String s)
  2. toDate(String s, String format)
  3. toDate(String sdate, SimpleDateFormat dateFormater)
  4. toDate(String sDate, String sFmt)
  5. toDate(String str)
  6. toDate(String str)
  7. toDate(String strDate)
  8. toDate(String strDate)
  9. toDate(String string)