reset date based on date