Transforming the rows when they are set to date