I'm passing a date back to my MVC controller via AJAX using: 

```
date.GetDate().toLocaleDateString();

```

This will produce a value of "4/5/2014"... When I try and convert this inside my controller using:

```
DateTime myDate = DateTime.ParseExact(request.Params["myDate"], "dd/MM/yyyy", CultureInfo.InvariantCulture);

```

I get "String was not recognized as a valid DateTime." Which makes sense because the format of the string isn't correct... When I hardcode the string to: "04/05/2014" it will fix my issue.

Is there anyway to fix the format coming from javascript without have to rip the string apart into day, month, year and reassembling it in the proper format?

Any advice would be much appreciated!

Thank you

Additional info:

```
string myRequestDate = request.Params["myDate"];
string myViewBagDate = ViewBag.MyDate;

//This line passes
DateTime date1 = DateTime.ParseExact(myViewBagDate, "d/M/yyyy", CultureInfo.InvariantCulture);

//This line fails...
DateTime date5 = DateTime.ParseExact(myRequestDate, "d/M/yyyy", CultureInfo.InvariantCulture);

```

When I add a watch on both of the string variables the values are identical in every way I can see but for some reason the second line fails...

So when I look at the myRequestDate as a char array I see there is a bunch of stuff in there that doesn't look like a date at all...

![enter image description here](https://i.stack.imgur.com/qPN0V.png)