Java String to Time getExpireTime(String timeStr)

Here you can find the source of getExpireTime(String timeStr)

Description

get Expire Time

License

Open Source License

Declaration

private static Date getExpireTime(String timeStr) 

Method Source Code

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

import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static final String dateFormat = "yyyy-MM-dd HH:mm:ss";

    private static Date getExpireTime(String timeStr) {
        SimpleDateFormat formatter = new SimpleDateFormat(dateFormat);
        Date date = formatter.parse(timeStr, new ParsePosition(0));
        return date;
    }//from w w w  . j a va 2 s .c o m
}

Related

  1. getCalendarFromCPEGeneratorDateTime(String cpeDateTime)
  2. getCalendarFromDate(final String dateTime)
  3. getDlayDateTime(String playDate, String playTime)
  4. getEndTime(String flag, int value)
  5. getExecutionDateTime(String input)
  6. getFormerDate(String dateTime)
  7. getIdByTime(String name)
  8. getMReportTime(String time)
  9. getSignTime(final String stStr)