Java String to Time getTime(String date)

Here you can find the source of getTime(String date)

Description

get Time

License

Apache License

Declaration

public static Date getTime(String date) throws ParseException 

Method Source Code

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

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static Date getTime(String date) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.parse(date);
    }/*from   www. j  a va  2  s  .c  o  m*/
}

Related

  1. getIdByTime(String name)
  2. getMReportTime(String time)
  3. getSignTime(final String stStr)
  4. getStringWithTime(String str)
  5. getSystemTime(String pattern)
  6. getTime(String date, String pattern)
  7. getTime(String dateTimeString)
  8. getTime(String file)
  9. getTime(String parrten)