Here you can find the source of getExecutionDateTime(String input)
public static Date getExecutionDateTime(String input) throws ParseException
//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); } }