Java Timestamp Create getTimestamp(String sqlDateTime)

Here you can find the source of getTimestamp(String sqlDateTime)

Description

get Timestamp

License

Open Source License

Declaration

public static long getTimestamp(String sqlDateTime) 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

public class Main {
    public static long getTimestamp(String sqlDateTime) {
        return Timestamp.valueOf(sqlDateTime).getTime();
    }//w  w  w  .  j a  va 2  s .c  o m
}

Related

  1. getTimestamp(ResultSet rs, String colName)
  2. getTimestamp(ResultSet rs, String strColName)
  3. getTimestamp(String date, String time)
  4. getTimestamp(String dateStr)
  5. getTimestamp(String dateString, String format)
  6. getTimestamp(String Str)
  7. getTimestamp(String str)
  8. getTimestamp(String strDate)
  9. getTimestamp(String time, String pattern)