add datediff attribute