I have an ASP.NET MVC site where I want routes like /{controller}/{id}/{action}/{date}
, where \"date\" is the mm/dd/yyyy portion of a date/time. (I\'m
I don't know if this counts as an answer or not, but I always use yyyy-mm-dd
format in URIs. Not because slashes are reserved per the RFC (although that's a good reason) but because it is immune to globalization issues when converting to/from a string. DateTime.Parse()
"just works" with this format, even if someone sets the server locale to somewhere in Eastern Europe.