Add as_date transform function.