Bug with MyDate as param