Date parameters are now passed correctly