             second = parseInt(matchResult[3], 10);
 
             // again, leading decimal point is part of the matched group
-            ms = matchResult[4] ? 1000 * (parseFloat(matchResult[4]))
-                                : 0;
+            ms = matchResult[4] ? 1000 * (parseFloat(matchResult[4])) : 0;
 
             return hour * TimeUnits.HOUR +
-                   minute * TimeUnits.MINUTE +
-                   second * TimeUnits.SECOND +
-                   ms * TimeUnits.MILLISECOND;
-        }
-        else
-        {
-            trace("DateParse.parseXSTime: "+"RegExp failed. String was: '" + xsTime+"'");
+                minute * TimeUnits.MINUTE +
+                second * TimeUnits.SECOND +
+                ms * TimeUnits.MILLISECOND;
+        }
+        else
+        {
+            trace("DateParse.parseXSTime: " +
+                "RegExp failed. String was: '" + xsTime + "'");
             return Number.NaN;
         }
     }

        }
        else
        {
            trace("DateParse.parseXSDate: "+"RegExp failed. String was: '" + xsDate+"'");
            return null;
        }

        return new Date(epoch);

    {
        var str:String;

        str = StringUtil.padLeft(date.fullYearUTC, 4, "0") + "-" +
            StringUtil.padLeft(date.monthUTC + 1, 2, "0") + "-" +
            StringUtil.padLeft(date.dateUTC, 2, "0") + "T" +
            StringUtil.padLeft(date.hoursUTC, 2, "0") + ":" +
            StringUtil.padLeft(date.minutesUTC, 2, "0") + ":" +
            StringUtil.padLeft(date.secondsUTC, 2, "0") + "Z";

        return str;
    }
