Changed _parseDate to a closure-local function