Added ymd function to date cleanup.