Java Timestamp Create getTimeStampFromString(String timeStamp)

Here you can find the source of getTimeStampFromString(String timeStamp)

Description

get Time Stamp From String

License

Open Source License

Declaration

public static Timestamp getTimeStampFromString(String timeStamp) 

Method Source Code

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

import java.sql.Timestamp;

public class Main {
    public static Timestamp getTimeStampFromString(String timeStamp) {
        return Timestamp.valueOf(timeStamp);
    }//from ww w.  java 2 s .co m
}

Related

  1. getTimeStampFromISOString(String isoString)
  2. getTimestampFromString(String dateStr)
  3. getTimestampFromString(String dateString, String dateFormat)
  4. getTimestampFromString(String id)
  5. getTimestampFromString(String s)
  6. getTimestampInEnglish(java.sql.Timestamp t)
  7. getTimestampLexical(boolean showSeconds, Locale locale)
  8. getTimestampMinusDays(Integer days)
  9. getTimestampNullSafe(final Date ts)