public static Timestamp toTimestamp(String input,String format){
  ToDateParser parser=getTimestampParser(input,format);
  return parser.getResultingTimestamp();
}

public static Timestamp toTimestamp ( String input , String format ) { ToDateParser parser = getTimestampParser ( input , format ) ; return parser . getResultingTimestamp ( ) ; }
parse a string as a timestamp with the given format .
