Java Timestamp Field getStringToTimestamp(String str)

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

Description

get String To Timestamp

License

Open Source License

Declaration

public static Timestamp getStringToTimestamp(String str) 

Method Source Code


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

import java.sql.Timestamp;

public class Main {
    public static Timestamp getStringToTimestamp(String str) {
        Timestamp ts = Timestamp.valueOf(str);
        return ts;
    }//w w w .  j a v a 2 s .c  o m
}

Related

  1. getSqlTimeStamp(java.util.Date date)
  2. getSQLTimeStampForDate(Date date)
  3. getSqlTimestampFromMicrosSinceEpoch( long timestamp)
  4. getSqlTimestampFromShortDate(String date)
  5. getStamp(Timestamp timestamp)
  6. getstrTimestamp(String datetime)
  7. getSysDateTimestamp()
  8. getSystemTimestamp()
  9. getSystemTimestamp()