package org.knowm.xchange.cryptofacilities;

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

public class Util {

  private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSX";

  public static Date parseDate(String str) throws ParseException {
    try {
      // need to create a new instance of SFD, since its not thread safe
      return str == null ? null : new SimpleDateFormat(DATE_FORMAT).parse(str);
    } catch (Exception e) {
      throw new RuntimeException("Could not parse date using '" + str + "'.", e);
    }
  }
}

@@ -54,85 +54,59 @@
 ava.
-text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java
+util.Date;%0Aimport org.knowm.xchange
 .util
+s
 .Date
+Utils
 ;%0A%0Ap
@@ -132,303 +132,121 @@
 %0A  p
-rivate static final String DATE_FORMAT = %22yyyy-MM-dd'T'HH:mm:ss.SSSX%22;%0A%0A  public static Date parseDate(String str) throws ParseException %7B%0A    try %7B%0A      // need to create a new instance of SFD, since its not thread safe%0A      return str == null ? null : new SimpleDateFormat(DATE_FORMAT).parse
+ublic static Date parseDate(String str) %7B%0A    try %7B%0A      return str == null ? null : DateUtils.fromISODateString
 (str

use DateUtils for date parsing