set date as default and cleanup