Changed asOfDate to Date type