Add trim by date method