Passing Date Parameter to RedirectToAction RouteValues

Viewed 23244

When Passing a DateTime Parameter to RedirectToAction (Asp.Net MVC2) either by passing DateTime or by passing a date: "13/4/2000"

    return RedirectToAction("index", "ControllerName",  new { mydate =  DTHelper.PrintDate(myVM.someobject.someobjectDateTime) });

The parameter passed with this representation - which the controller can't resolve:

http://localhost:6105/ControllerName?mydate=19%2F6%2F2011

how can I make it pass as original (it works when I build the url myself):

(this will not work b/c %2F....)

1 Answers
Related