private DateTime parseToDate(String toDate) {
        // Default to now
        return parseDate(toDate, new DateTime().withZone(DateTimeZone.UTC), false);
    }
Parse the from date query param.
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/StatsService.java