is it this part that needs changed for the invalid format error?
unction WAGetDateFormat($value, $dateFormat) {
  $isUSServ = (date("n", strtotime("1/2/2006")) == 1);
  $tValue = $value;
  $isEuroDate = (($dateFormat && strpos($dateFormat, "[12]\\d|3[0-1]") < strpos($dateFormat, "1[0-2]|") && strpos($dateFormat, "\\w*") === false) || (!$isUSServ));
  if (($isEuroDate && $isUSServ) || (!$isEuroDate && !$isUSServ)) {
    $datePattn = "/(\\d*)[-\\.\\/](\\d*)[-\\.\\/](\d*)/";
    preg_match($datePattn, $tValue, $tMatch);
    if ($tMatch && sizeof($tMatch)) {
      if ($isEuroDate) {
        $value = $tMatch[2] . "/" . $tMatch[1] . "/" . $tMatch[3];
      }
      else {
        $value = $tMatch[1] . "/" . $tMatch[2] . "/" . $tMatch[3];
      }
      if (strpos($tValue, " ") !== false) {
        $value .= substr($tValue, strpos($tValue, " "));
      }
    }
  }
  return strtotime(preg_replace("/[\.-]/", "/", $value));
}
thanks

 














