Delete data from more than week ago don't delete data from last month

You should not care about how the date is formatted in your stored data, it is probably some kind of number that takes less space than a string. The way it is displayed is ISO compliant. It simply needs to be the correct date type. If an ISO compliant format is not okay for you, you may display it in the format of your choice later at the presentation of your application.