Pass date correctly