Java SQL Date Parse StringToDateHMS(String str)

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

Description

String To Date HMS

License

Apache License

Declaration

public static Timestamp StringToDateHMS(String str) 

Method Source Code


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

import java.sql.Timestamp;

public class Main {

    public static Timestamp StringToDateHMS(String str) {
        Timestamp time = null;//  w  ww . j  a  v  a2 s .c  o m
        time = Timestamp.valueOf(str);
        return time;
    }
}

Related

  1. stringToDate(String date, Class dateType)
  2. stringToDate(String dateStr)
  3. stringToDate(String dta)
  4. stringToDate(String str)
  5. stringToDate(String str)
  6. stringToSqlDate(String data)
  7. stringToSqlDate(String date)
  8. stringToSqlDate(String dateVal)
  9. stringToSQLDate(String pstrValue, String pstrDateFormat)