Java String to Time getExecutionDateTime(String input)

Here you can find the source of getExecutionDateTime(String input)

Description

get Execution Date Time

License

Open Source License

Declaration

public static Date getExecutionDateTime(String input)
            throws ParseException 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2013 Andy Flury.//from  w w w  . j av  a  2  s  .c o  m
 * http://code.google.com/p/algo-trader
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 ******************************************************************************/

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

public class Main {
    private static SimpleDateFormat executionFormat = new SimpleDateFormat(
            "yyyyMMdd  HH:mm:ss");

    public static Date getExecutionDateTime(String input)
            throws ParseException {

        return executionFormat.parse(input);
    }
}

Related

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