Java SQL Date Parse stringToDate(String dateStr)

Here you can find the source of stringToDate(String dateStr)

Description

string To Date

License

Open Source License

Declaration

public static java.sql.Date stringToDate(String dateStr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static java.sql.Date stringToDate(String dateStr) {
        return java.sql.Date.valueOf(dateStr);
    }//from ww w  .  ja v  a2s  .  co  m
}

Related

  1. parseUTCDateFromString(String dt)
  2. parseUtilDateToSqlDate(Date date)
  3. stringToDate(final String dateString)
  4. stringToDate(String date)
  5. stringToDate(String date, Class dateType)
  6. stringToDate(String dta)
  7. stringToDate(String str)
  8. stringToDate(String str)
  9. StringToDateHMS(String str)