Fix date() function in ParseResult