Changed date to isoformat so it could be json serialized.