class CCEXUtils {

  private static final Date EPOCH = new Date(0);

  private CCEXUtils() {}

  public static String toPairString(CurrencyPair currencyPair) {

    return currencyPair.counter.getCurrencyCode().toLowerCase()
        + "-"
        + currencyPair.base.getCurrencyCode().toLowerCase();
  }

  public static Date toDate(String datetime) {<FILL_FUNCTION_BODY>}
}

    SimpleDateFormat sdf;

    sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    sdf.setTimeZone(TimeZone.getTimeZone("UTC"));

    try {
      return sdf.parse(datetime);
    } catch (ParseException e) {
      return EPOCH;
    }
  
<no_super_class>