const ref for date and delete unnecessary include